1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

[share] bugfix

This commit is contained in:
llj
2015-04-17 14:13:09 +08:00
committed by Daniel Pan
parent 9f60afcf22
commit cfad7ef7d4

View File

@@ -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');