Skip to content

Commit

Permalink
fix file select after upload in ckeditor
Browse files Browse the repository at this point in the history
  • Loading branch information
scream4ik committed Nov 21, 2016
1 parent 2cfb1fe commit 34882b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion filebrowser/static/filebrowser/js/FB_CKEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ function ProtectPath(path) {
}

function gup( name ) {
var url = encodeURI(window.location.href);
url = url.replace(/&/g, '&');
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
var results = regex.exec(url);
if(results == null)
return "";
else
Expand Down

0 comments on commit 34882b7

Please sign in to comment.