Skip to content

Commit 7ffbca0

Browse files
authored
Fix popup window name to element id transform (#1326)
1 parent 62551a1 commit 7ffbca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filer/static/filer/js/addons/popup_handling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (django.jQuery) {
1212
function windowname_to_id(text) {
1313
text = text.replace(/__dot__/g, '.');
1414
text = text.replace(/__dash__/g, '-');
15-
return text;
15+
return text.split('__')[0];
1616
}
1717

1818
window.dismissPopupAndReload = function (win) {

0 commit comments

Comments
 (0)