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 () {