mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Dont need to wrap entwine blocks in onload blocks, theres no benefit
This commit is contained in:
parent
a9bedccd1f
commit
72efed1993
@ -21,19 +21,13 @@
|
|||||||
* Refresh the member listing every time the import iframe is loaded,
|
* Refresh the member listing every time the import iframe is loaded,
|
||||||
* which is most likely a form submission.
|
* which is most likely a form submission.
|
||||||
*/
|
*/
|
||||||
$(window).bind('load', function(e) {
|
$('#MemberImportFormIframe, #GroupImportFormIframe').entwine({
|
||||||
$('#MemberImportFormIframe,#GroupImportFormIframe').entwine({
|
onadd: function() {
|
||||||
onmatch: function() {
|
|
||||||
this._super();
|
this._super();
|
||||||
|
|
||||||
// TODO entwine can't seem to bind to iframe load events
|
// TODO entwine can't seem to bind to iframe load events
|
||||||
$(this).bind('load', refreshAfterImport);
|
$(this).bind('load', refreshAfterImport);
|
||||||
},
|
|
||||||
onunmatch: function() {
|
|
||||||
this._super();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
$.entwine('ss', function($){
|
$.entwine('ss', function($){
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user