From b79b8b8d57450cbce128d63bd172f69ece7b6a7d Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 12 Apr 2019 11:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2=E8=A1=8C=E4=B8=BA=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E6=8A=9B=E5=BC=82=E5=B8=B8=20closed=20#IVAUH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Issue https://gitee.com/LongbowEnterprise/dashboard/issues?id=IVAUH --- Bootstrap.Admin/wwwroot/js/login.js | 4 ++-- .../wwwroot/lib/captcha/longbow.slidercaptcha.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Bootstrap.Admin/wwwroot/js/login.js b/Bootstrap.Admin/wwwroot/js/login.js index 784b663e..d6de20b6 100644 --- a/Bootstrap.Admin/wwwroot/js/login.js +++ b/Bootstrap.Admin/wwwroot/js/login.js @@ -98,8 +98,8 @@ return 'http://pocoafrro.bkt.clouddn.com/Pic' + Math.round(Math.random() * 136) + '.jpg'; }, onSuccess: function () { - var parent = this.$element.parents('.slidercaptcha').removeClass('d-block'); - this.reset(); + var parent = this.parents('.slidercaptcha').removeClass('d-block'); + this.sliderCaptcha('reset'); if (parent.hasClass('reg')) { $.capRegSuccess(); } diff --git a/Bootstrap.Admin/wwwroot/lib/captcha/longbow.slidercaptcha.js b/Bootstrap.Admin/wwwroot/lib/captcha/longbow.slidercaptcha.js index 9af4f3ca..a3677a7c 100644 --- a/Bootstrap.Admin/wwwroot/lib/captcha/longbow.slidercaptcha.js +++ b/Bootstrap.Admin/wwwroot/lib/captcha/longbow.slidercaptcha.js @@ -86,7 +86,7 @@ Object.assign(this, { canvas, block, - sliderContainer : $(sliderContainer), + sliderContainer: $(sliderContainer), refreshIcon, slider, sliderMask, @@ -250,7 +250,7 @@ setTimeout(() => { that.text.text(that.options.failedText); that.reset(); - }, 1000) + }, 1000); } }; @@ -261,8 +261,8 @@ document.addEventListener('mouseup', handleDragEnd); document.addEventListener('touchend', handleDragEnd); - document.addEventListener('mousedown', function() { return false; }); - document.addEventListener('touchstart', function() { return false; }); + document.addEventListener('mousedown', function () { return false; }); + document.addEventListener('touchstart', function () { return false; }); }; _proto.verify = function () {