mise a jour pour mtweb.0.9.0
[mw_pages] / app / out / default / tiny_mce / plugins / tinybrowser / tb_standalone.js.php
diff --git a/app/out/default/tiny_mce/plugins/tinybrowser/tb_standalone.js.php b/app/out/default/tiny_mce/plugins/tinybrowser/tb_standalone.js.php
new file mode 100644 (file)
index 0000000..5de1f82
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+require_once("config_tinybrowser.php");
+
+$tbpath = pathinfo($_SERVER['SCRIPT_NAME']);
+$tbmain = $tbpath['dirname'].'/tinybrowser.php';
+?>
+
+function tinyBrowserPopUp(type,formelementid,folder) {
+   tburl = "<?php echo $tbmain; ?>" + "?type=" + type + "&feid=" + formelementid;
+   if (folder !== undefined) tburl += "&folder="+folder+"%2F";
+   newwindow=window.open(tburl,'tinybrowser','height=<?php echo $tinybrowser['window']['height']+15; ?>,width=<?php echo $tinybrowser['window']['width']+15; ?>,scrollbars=yes,resizable=yes');
+   if (window.focus) {newwindow.focus()}
+   return false;
+}