mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
[share] bugfix
This commit is contained in:
@@ -87,18 +87,16 @@ define([
|
|||||||
'submit #dir-private-share-form': 'dirPrivateShare'
|
'submit #dir-private-share-form': 'dirPrivateShare'
|
||||||
},
|
},
|
||||||
|
|
||||||
highlightCheckbox: function () {
|
highlightCheckbox: function (e) {
|
||||||
var el = event.target || event.srcElement;
|
$(e.currentTarget).addClass('hl');
|
||||||
$(el).addClass('hl');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
rmHighlightCheckbox: function () {
|
rmHighlightCheckbox: function (e) {
|
||||||
var el = event.target || event.srcElement;
|
$(e.currentTarget).removeClass('hl');
|
||||||
$(el).removeClass('hl');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
clickCheckbox: function() {
|
clickCheckbox: function(e) {
|
||||||
var el = event.target || event.srcElement;
|
var el = e.currentTarget;
|
||||||
$(el).parent().toggleClass('checkbox-checked');
|
$(el).parent().toggleClass('checkbox-checked');
|
||||||
// for link options such as 'password', 'expire'
|
// for link options such as 'password', 'expire'
|
||||||
$(el).closest('.checkbox-label').next().toggleClass('hide');
|
$(el).closest('.checkbox-label').next().toggleClass('hide');
|
||||||
|
Reference in New Issue
Block a user