X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/04b05946ab640eaf9135a73772b704dd41c323e7..717c14c014e3c988bcb392599a47ffa92630da78:/platforma/static/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base diff --git a/platforma/static/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base b/platforma/static/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base new file mode 100644 index 00000000..74d8d643 --- /dev/null +++ b/platforma/static/filebrowser/js/.svn/text-base/FB_CKEditor.js.svn-base @@ -0,0 +1,24 @@ +function ProtectPath(path) { + path = path.replace( /\\/g,'\\\\'); + path = path.replace( /'/g,'\\\''); + return path ; +} + +function gup( name ) { + name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); + var regexS = "[\\?&]"+name+"=([^&#]*)"; + var regex = new RegExp(regexS); + var results = regex.exec(window.location.href); + if(results == null) + return ""; + else + return results[1]; +} + +function OpenFile(fileUrl) { + var CKEditorFuncNum = gup('CKEditorFuncNum'); + window.top.opener.CKEDITOR.tools.callFunction(CKEditorFuncNum,encodeURI(fileUrl).replace('#','%23')); + window.top.close(); + window.top.opener.focus(); +} +