Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3457)

Unified Diff: chrome/browser/resources/shared/js/cr/ui/array_data_model.js

Issue 8548012: Added "select all/none" checkbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/shared/js/cr/ui/array_data_model.js
diff --git a/chrome/browser/resources/shared/js/cr/ui/array_data_model.js b/chrome/browser/resources/shared/js/cr/ui/array_data_model.js
index 5a83dd32b6906e13debd091b4307e616da25646f..3992c46f6de412039cbc433239d4fdbc11e3f1e4 100644
--- a/chrome/browser/resources/shared/js/cr/ui/array_data_model.js
+++ b/chrome/browser/resources/shared/js/cr/ui/array_data_model.js
@@ -77,6 +77,15 @@ cr.define('cr.ui', function() {
},
/**
+ * Returns true if the field has a compare function.
+ * @param {string} field The field to check.
+ * @return {boolean} True if the field is sortable.
+ */
+ isSortable: function(field) {
+ return this.compareFunctions_ && field in this.compareFunctions_;
+ },
+
+ /**
* Returns current sort status.
* @return {!Object} Current sort status.
*/

Powered by Google App Engine
This is Rietveld 408576698