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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user