Skip to content

Commit

Permalink
Fixed #123 bug with file pickers in list elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Oct 6, 2020
1 parent 1df3516 commit a535e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/public/js/be_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ var removePicker = function(element) {
$(match[1]).removeEvents('click');
$(document.body).getChildren('#'+match[2]).destroy();
}
else if (match = script.get('html').match(/\$\("(pp_rsce_field_[^"]+)"\)\.addEvent\("click"/)) {
else if (match = script.get('html').match(/\$\("((?:pp|ft)_rsce_field_[^"]+)"\)\.addEvent\("click"/)) {
$(match[1]).removeEvents('click');
}
});
Expand All @@ -117,7 +117,7 @@ var restorePicker = function(element) {
if (script.get('html').match(/new MooRainbow\("(moo_rsce_field_[^"]+)"[^]*?id:\s*"([^"]+)"/)) {
Browser.exec(script.get('html'));
}
else if (script.get('html').match(/\$\("(pp_rsce_field_[^"]+)"\)\.addEvent\("click"/)) {
else if (script.get('html').match(/\$\("((?:pp|ft)_rsce_field_[^"]+)"\)\.addEvent\("click"/)) {
Browser.exec(script.get('html'));
}
});
Expand Down

0 comments on commit a535e3e

Please sign in to comment.