Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2011-11-02 01:35:13 +0400
committerBrice Maron <brice@bmaron.net>2011-11-02 01:35:13 +0400
commitc7d1737d47c1846beee5d145dd73dd7924a6eea9 (patch)
tree15570e22b38ba794b7068e9a652e429e75f63df7 /apps/files_sharing
parente533e82bc9526ef9869b20e99b745c210348218f (diff)
attempt to manage some special chars in file list
Added a jquery function to filter by attributes. Add more logging in rename file Use the new function to avoid errors
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/share.js6
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'));
}