|
@ -332,6 +332,7 @@ $.fn.progress = function(parameters) { |
|
|
if(text) { |
|
|
if(text) { |
|
|
module.set.label(text); |
|
|
module.set.label(text); |
|
|
} |
|
|
} |
|
|
|
|
|
$.proxy(settings.onActive, element)(module.value, module.total); |
|
|
}, |
|
|
}, |
|
|
success : function(text) { |
|
|
success : function(text) { |
|
|
text = text || settings.text.success; |
|
|
text = text || settings.text.success; |
|
@ -344,6 +345,7 @@ $.fn.progress = function(parameters) { |
|
|
if(text) { |
|
|
if(text) { |
|
|
module.set.label(text); |
|
|
module.set.label(text); |
|
|
} |
|
|
} |
|
|
|
|
|
$.proxy(settings.onSuccess, element)(module.total); |
|
|
}, |
|
|
}, |
|
|
warning : function(text) { |
|
|
warning : function(text) { |
|
|
text = text || settings.text.warning; |
|
|
text = text || settings.text.warning; |
|
@ -356,6 +358,7 @@ $.fn.progress = function(parameters) { |
|
|
if(text) { |
|
|
if(text) { |
|
|
module.set.label(text); |
|
|
module.set.label(text); |
|
|
} |
|
|
} |
|
|
|
|
|
$.proxy(settings.onWarning, element)(module.value, module.total); |
|
|
}, |
|
|
}, |
|
|
error : function(text) { |
|
|
error : function(text) { |
|
|
text = text || settings.text.error; |
|
|
text = text || settings.text.error; |
|
@ -368,6 +371,7 @@ $.fn.progress = function(parameters) { |
|
|
if(text) { |
|
|
if(text) { |
|
|
module.set.label(text); |
|
|
module.set.label(text); |
|
|
} |
|
|
} |
|
|
|
|
|
$.proxy(settings.onError, element)(module.value, module.total); |
|
|
}, |
|
|
}, |
|
|
total: function(totalValue) { |
|
|
total: function(totalValue) { |
|
|
module.total = totalValue; |
|
|
module.total = totalValue; |
|
@ -577,14 +581,14 @@ $.fn.progress = function(parameters) { |
|
|
|
|
|
|
|
|
$.fn.progress.settings = { |
|
|
$.fn.progress.settings = { |
|
|
|
|
|
|
|
|
name : 'Progress', |
|
|
|
|
|
namespace : 'progress', |
|
|
|
|
|
|
|
|
name : 'Progress', |
|
|
|
|
|
namespace : 'progress', |
|
|
|
|
|
|
|
|
debug : false, |
|
|
|
|
|
verbose : true, |
|
|
|
|
|
performance : true, |
|
|
|
|
|
|
|
|
debug : false, |
|
|
|
|
|
verbose : true, |
|
|
|
|
|
performance : true, |
|
|
|
|
|
|
|
|
random : { |
|
|
|
|
|
|
|
|
random : { |
|
|
min : 2, |
|
|
min : 2, |
|
|
max : 5 |
|
|
max : 5 |
|
|
}, |
|
|
}, |
|
@ -600,6 +604,10 @@ $.fn.progress.settings = { |
|
|
value : false, |
|
|
value : false, |
|
|
|
|
|
|
|
|
onChange : function(percent, value, total){}, |
|
|
onChange : function(percent, value, total){}, |
|
|
|
|
|
onSuccess : function(total){}, |
|
|
|
|
|
onActive : function(value, total){}, |
|
|
|
|
|
onError : function(value, total){}, |
|
|
|
|
|
onWarning : function(value, total){}, |
|
|
|
|
|
|
|
|
error : { |
|
|
error : { |
|
|
method : 'The method you called is not defined.', |
|
|
method : 'The method you called is not defined.', |
|
|