mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
Make sure the removing class of progress dropdown list is happening before customized onFinish called by et2_call, because it may loses its context after call
This commit is contained in:
parent
0d5fa9615e
commit
3e6a7a7ba4
@ -456,6 +456,15 @@ var et2_file = et2_inputWidget.extend(
|
|||||||
event.data = this;
|
event.data = this;
|
||||||
|
|
||||||
var result = false;
|
var result = false;
|
||||||
|
|
||||||
|
//Remove progress_dropDown_fileList class and unbind the click handler from body
|
||||||
|
if (this.options.progress_dropdownlist)
|
||||||
|
{
|
||||||
|
this.progress.removeClass("progress_dropDown_fileList");
|
||||||
|
jQuery(this.node).find('span').removeClass('totalProgress_loader');
|
||||||
|
jQuery('body').off('click');
|
||||||
|
}
|
||||||
|
|
||||||
if(this.options.onFinish && !jQuery.isEmptyObject(this.getValue()))
|
if(this.options.onFinish && !jQuery.isEmptyObject(this.getValue()))
|
||||||
{
|
{
|
||||||
result = et2_call(this.options.onFinish, event, file_count);
|
result = et2_call(this.options.onFinish, event, file_count);
|
||||||
@ -469,14 +478,6 @@ var et2_file = et2_inputWidget.extend(
|
|||||||
// Fire legacy change action when done
|
// Fire legacy change action when done
|
||||||
this.change(this.input);
|
this.change(this.input);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Remove progress_dropDown_fileList class and unbind the click handler from body
|
|
||||||
if (this.options.progress_dropdownlist)
|
|
||||||
{
|
|
||||||
this.progress.removeClass("progress_dropDown_fileList");
|
|
||||||
jQuery(this.node).find('span').removeClass('totalProgress_loader');
|
|
||||||
jQuery('body').off('click');
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user