1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +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'
},
highlightCheckbox: function () {
var el = event.target || event.srcElement;
$(el).addClass('hl');
highlightCheckbox: function (e) {
$(e.currentTarget).addClass('hl');
},
rmHighlightCheckbox: function () {
var el = event.target || event.srcElement;
$(el).removeClass('hl');
rmHighlightCheckbox: function (e) {
$(e.currentTarget).removeClass('hl');
},
clickCheckbox: function() {
var el = event.target || event.srcElement;
clickCheckbox: function(e) {
var el = e.currentTarget;
$(el).parent().toggleClass('checkbox-checked');
// for link options such as 'password', 'expire'
$(el).closest('.checkbox-label').next().toggleClass('hide');