1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

redesigned all checkbox; bugfix & improvement; removed unused code & file

This commit is contained in:
llj
2016-04-07 11:06:48 +08:00
parent d5170f7a18
commit 77aac3d811
16 changed files with 102 additions and 197 deletions

View File

@@ -83,13 +83,12 @@ define([
togglePasswdInput: function(e) {
var $checkbox = $('#encrypt-switch');
var pwd_input = this.$('input[type="password"]');
var $pwd_input = this.$('input[type="password"]');
$checkbox.parent().toggleClass('checkbox-checked');
if ($checkbox.prop('checked')) {
pwd_input.attr('disabled', false).removeClass('input-disabled');
$pwd_input.attr('disabled', false).removeClass('input-disabled');
} else {
pwd_input.attr('disabled', true).addClass('input-disabled');
$pwd_input.attr('disabled', true).addClass('input-disabled');
}
}