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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user