diff options
author | Brice Maron <brice@bmaron.net> | 2011-11-01 22:35:13 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2011-11-01 22:35:13 +0100 |
commit | c7d1737d47c1846beee5d145dd73dd7924a6eea9 (patch) | |
tree | 15570e22b38ba794b7068e9a652e429e75f63df7 /core | |
parent | e533e82bc9526ef9869b20e99b745c210348218f (diff) | |
download | nextcloud-server-c7d1737d47c1846beee5d145dd73dd7924a6eea9.tar.gz nextcloud-server-c7d1737d47c1846beee5d145dd73dd7924a6eea9.zip |
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 'core')
-rw-r--r-- | core/js/js.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index 9e814ca0729..440f504c8f7 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -401,3 +401,10 @@ if (!Array.prototype.map){ return res; }; } + +/** + * Filter Jquery selector by attribute value + **/ +$.fn.filterAttr = function(attr_name, attr_value) { + return this.filter(function() { return $(this).attr(attr_name) === attr_value; }); +}; |