1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +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

@@ -68,9 +68,7 @@ define([
},
events: {
'mouseenter .checkbox-label': 'highlightCheckbox',
'mouseleave .checkbox-label': 'rmHighlightCheckbox',
'click .checkbox-orig': 'clickCheckbox',
'click [type="checkbox"]': 'clickCheckbox',
// download link
'submit #generate-download-link-form': 'generateDownloadLink',
@@ -95,19 +93,10 @@ define([
'click #add-dir-group-share-item .submit': 'dirGroupShare'
},
highlightCheckbox: function (e) {
$(e.currentTarget).addClass('hl');
},
rmHighlightCheckbox: function (e) {
$(e.currentTarget).removeClass('hl');
},
clickCheckbox: function(e) {
var el = e.currentTarget;
$(el).parent().toggleClass('checkbox-checked');
var $el = $(e.currentTarget);
// for link options such as 'password', 'expire'
$(el).closest('.checkbox-label').next().toggleClass('hide');
$el.closest('.checkbox-label').next().toggleClass('hide');
},
downloadLinkPanelInit: function() {