Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dont need to wrap entwine blocks in onload blocks, theres no benefit

  • Loading branch information...
commit 72efed1993c14982cd02fa7870182ca3ec079ea1 1 parent a9bedcc
@hafriedlander hafriedlander authored
Showing with 7 additions and 13 deletions.
  1. +7 −13 admin/javascript/SecurityAdmin.js
View
20 admin/javascript/SecurityAdmin.js
@@ -21,20 +21,14 @@
* Refresh the member listing every time the import iframe is loaded,
* which is most likely a form submission.
*/
- $(window).bind('load', function(e) {
- $('#MemberImportFormIframe,#GroupImportFormIframe').entwine({
- onmatch: function() {
- this._super();
-
- // TODO entwine can't seem to bind to iframe load events
- $(this).bind('load', refreshAfterImport);
- },
- onunmatch: function() {
- this._super();
- }
- });
+ $('#MemberImportFormIframe, #GroupImportFormIframe').entwine({
+ onadd: function() {
+ this._super();
+ // TODO entwine can't seem to bind to iframe load events
+ $(this).bind('load', refreshAfterImport);
+ }
});
-
+
$.entwine('ss', function($){
/**
* Class: #Permissions .checkbox[value=ADMIN]
Please sign in to comment.
Something went wrong with that request. Please try again.