diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-22 00:09:43 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-22 00:09:43 +0200 |
commit | 101cfa23590c3430b05debc60a2335ad597f7d23 (patch) | |
tree | 3e584c9b4cea91211217b6d94eee0dc447e9dc9a /apps/files/js/file-upload.js | |
parent | a89199cc7bd19f6ba3e76fcd510219b2bd930ae6 (diff) | |
download | nextcloud-server-101cfa23590c3430b05debc60a2335ad597f7d23.tar.gz nextcloud-server-101cfa23590c3430b05debc60a2335ad597f7d23.zip |
remove duplicate code
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r-- | apps/files/js/file-upload.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 49e464b810a..f262f11f065 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -205,6 +205,13 @@ $(document).ready(function() { } }); }); + $('#new').click(function(event){ + event.stopPropagation(); + }); + $('#new>a').click(function(){ + $('#new>ul').toggle(); + $('#new').toggleClass('active'); + }); $('#new li').click(function(){ if($(this).children('p').length==0){ return; |