Commits

Artem Gluvchynsky committed 81d2f60

Clean-up the events in filebrowser-popup.js

  • Participants
  • Parent commits 814eec3

Comments (0)

Files changed (1)

filebrowser_safe/static/filebrowser/js/filebrowser-popup.js

 			setTimeout(function() {
 				callback(url);
 			}, 1);
+
+			// Clean-up the events so they don't get triggered more than once
+			iframe.off('load');
+			gallery.off('dialogclose');
 		});
 
 		// Binding must wait until iframe's content is completely loaded.