DetGC commited on
Commit
df6eb80
·
verified ·
1 Parent(s): 2c8fcab

Update js_free-online-image-upscaler.js

Browse files
Files changed (1) hide show
  1. js_free-online-image-upscaler.js +3 -3
js_free-online-image-upscaler.js CHANGED
@@ -3253,7 +3253,7 @@
3253
  $("#upload").change(function() {
3254
  var e = $(this)[0].files[0];
3255
  e && (ps(e), $(this).val(""))
3256
- }), Pu.bindDragEvent("#drag-zone", function(e) {
3257
  ps(e)
3258
  }), $(".scale_change").change(function() {
3259
  Fu.magnification = $(this).val()
@@ -3261,8 +3261,8 @@
3261
  if ($(this).hasClass("active")) return !1;
3262
  var e = this,
3263
  t = parseInt($(this).html());
3264
- if (3e3 < Fu.uploadFile.image.width * t || 3e3 < Fu.uploadFile.image.height * t) return ju.showMessageBox("oversize", hs, !0, function() {
3265
- ju.closeMessageBox(), Fu.resultImg.width < 3e3 && Fu.resultImg.height < 3e3 ? as.requestDeal(t, Fu.imageMd5, Fu.sign) : (Fu.magnification = t, $(e).addClass("active").siblings(".scale_num").removeClass("active"), $(".scale_change").attr("checked", !1), $("#" + $(e).html().toUpperCase()).attr("checked", !0))
3266
  }, function() {
3267
  ju.closeMessageBox()
3268
  }), !1;
 
3253
  $("#upload").change(function() {
3254
  var e = $(this)[0].files[0];
3255
  e && (ps(e), $(this).val(""))
3256
+ }), Pu.bindDragEvent(.drag-zone", function(e) {
3257
  ps(e)
3258
  }), $(".scale_change").change(function() {
3259
  Fu.magnification = $(this).val()
 
3261
  if ($(this).hasClass("active")) return !1;
3262
  var e = this,
3263
  t = parseInt($(this).html());
3264
+ if (99e3 < Fu.uploadFile.image.width * t || 99e3 < Fu.uploadFile.image.height * t) return ju.showMessageBox("oversize", hs, !0, function() {
3265
+ ju.closeMessageBox(), Fu.resultImg.width < 99e3 && Fu.resultImg.height < 99e3 ? as.requestDeal(t, Fu.imageMd5, Fu.sign) : (Fu.magnification = t, $(e).addClass("active").siblings(".scale_num").removeClass("active"), $(".scale_change").attr("checked", !1), $("#" + $(e).html().toUpperCase()).attr("checked", !0))
3266
  }, function() {
3267
  ju.closeMessageBox()
3268
  }), !1;