diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-09-15 10:27:33 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-16 07:23:29 +0200 |
commit | 886f1ed660e91edb8f370cf711ed395fdff7dc30 (patch) | |
tree | dbe4bb2db145c88fa34a801d605acf24459c7c7c /core/js/share.js | |
parent | 41f16e821a086d9529cc4eb3f26e24bbb1e04c72 (diff) | |
download | nextcloud-server-886f1ed660e91edb8f370cf711ed395fdff7dc30.tar.gz nextcloud-server-886f1ed660e91edb8f370cf711ed395fdff7dc30.zip |
Update JS unit tests for share dialog (WIP)
Diffstat (limited to 'core/js/share.js')
-rw-r--r-- | core/js/share.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js index 0a3bba49b6c..a2e6e6af0fc 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -3,7 +3,7 @@ /** * @namespace */ -OC.Share = _.extend(OC.Share, { +OC.Share = _.extend(OC.Share || {}, { SHARE_TYPE_USER:0, SHARE_TYPE_GROUP:1, SHARE_TYPE_LINK:3, @@ -445,7 +445,7 @@ $(document).ready(function() { var target = $(event.target); var isMatched = !target.is('.drop, .ui-datepicker-next, .ui-datepicker-prev, .ui-icon') && !target.closest('#ui-datepicker-div').length && !target.closest('.ui-autocomplete').length; - if (OC.Share.droppedDown && isMatched && $('#dropdown').has(event.target).length === 0) { + if (OC.Share && OC.Share.droppedDown && isMatched && $('#dropdown').has(event.target).length === 0) { OC.Share.hideDropDown(); } }); |