diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-11-04 03:00:03 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-11-04 03:00:03 +0100 |
commit | 2c68aab1983c912e52af6c0f62bc04850178894b (patch) | |
tree | 0cbf68f3be22624f2dbb8e1b752ad99e1679b625 /apps/files_sharing/js | |
parent | 0c890a501cc7c24fb7eb5a4e4bff35dd2bb56b6d (diff) | |
parent | ce2b39b398b1bf2143e1b16523de5325a766d24d (diff) | |
download | nextcloud-server-2c68aab1983c912e52af6c0f62bc04850178894b.tar.gz nextcloud-server-2c68aab1983c912e52af6c0f62bc04850178894b.zip |
Merge branch 'master' into newbutton
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/share.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index c0fc91e92ad..131571351c5 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -10,7 +10,7 @@ $(document).ready(function() { type: 'GET', url: OC.linkTo('files_sharing', 'ajax/getitem.php'), dataType: 'json', - data: 'source='+file, + data: {source: file}, async: false, success: function(users) { if (users) { @@ -184,8 +184,8 @@ function createDropdown(filename, files) { html += '<input id="link" style="display:none; width:90%;" />'; html += '</div>'; if (filename) { - $('tr[data-file="'+filename+'"]').addClass('mouseOver'); - $(html).appendTo($('tr[data-file="'+filename+'"] td.filename')); + $('tr').filterAttr('data-file',filename).addClass('mouseOver'); + $(html).appendTo($('tr').filterAttr('data-file',filename).find('td.filename')); } else { $(html).appendTo($('thead .share')); } |