summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-11-04 03:00:03 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-11-04 03:00:03 +0100
commit2c68aab1983c912e52af6c0f62bc04850178894b (patch)
tree0cbf68f3be22624f2dbb8e1b752ad99e1679b625 /core/js
parent0c890a501cc7c24fb7eb5a4e4bff35dd2bb56b6d (diff)
parentce2b39b398b1bf2143e1b16523de5325a766d24d (diff)
downloadnextcloud-server-2c68aab1983c912e52af6c0f62bc04850178894b.tar.gz
nextcloud-server-2c68aab1983c912e52af6c0f62bc04850178894b.zip
Merge branch 'master' into newbutton
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 8cfb58982ad..5846d289880 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; });
+};