refactor: 同步 js 脚本

This commit is contained in:
Argo Zhang 2019-10-24 11:55:26 +08:00
parent 54283b284b
commit 69db63d8b2
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
4 changed files with 83 additions and 78 deletions

View File

@ -240,7 +240,6 @@
};
var handleDragMove = function (e) {
e.preventDefault();
if (!isMouseDown) return false;
var eventX = e.clientX || e.touches[0].clientX;
var eventY = e.clientY || e.touches[0].clientY;

View File

@ -68,7 +68,6 @@ body {
.sliderContainer_fail .sliderIcon:before {
content: "\f00d";
}
.sliderContainer_active .sliderText, .sliderContainer_success .sliderText, .sliderContainer_fail .sliderText {
display: none;
}
@ -112,6 +111,7 @@ body {
}
.sliderIcon {
}
.refreshIcon {

View File

@ -2,6 +2,8 @@
font-weight: 500;
cursor: pointer;
display: inline-block;
text-overflow: ellipsis;
overflow: hidden;
user-select: none;
white-space: nowrap;
margin: 0;

View File

@ -517,6 +517,10 @@
var defaultVal = this.$element.attr('data-default-val') || '';
if (defaultVal === '') this.$element.prop('checked', true);
oldFunc.call(this);
this.$toggle.on('touchend', function (e) {
$(this).trigger('click.bs.toggle');
e.preventDefault();
});
}
}