...
|
...
|
@@ -96,8 +96,8 @@ $.fn.ajaxfileupload = function(options) { |
|
|
height = $(img).height();
|
|
|
|
|
|
if (settings.valid_spec == true
|
|
|
&& Math.abs(width - settings.width_limit) > 10
|
|
|
&& Math.abs(height - settings.height_limit) > 10 ) {
|
|
|
&& (Math.abs(width - settings.width_limit) > 10
|
|
|
|| Math.abs(height - settings.height_limit) > 10) ) {
|
|
|
// 图片规格超出限制
|
|
|
settings.onComplete.apply($element, [{
|
|
|
status: false,
|
...
|
...
|
|