diff options
author | starfieldsoftware <johnpauljones@fsflyingschool.com> | 2013-03-26 12:30:57 +0000 |
---|---|---|
committer | starfieldsoftware <johnpauljones@fsflyingschool.com> | 2013-03-26 12:30:57 +0000 |
commit | 94774acb2dba8afea31463af53f25e2471cb241a (patch) | |
tree | 485c9674b619a4e41227946fc893aa7cdf6d9b4a | |
parent | 7bca4f19a43d591e675a70690fa18937c329a1ce (diff) | |
download | jtable-94774acb2dba8afea31463af53f25e2471cb241a.zip jtable-94774acb2dba8afea31463af53f25e2471cb241a.tar.gz jtable-94774acb2dba8afea31463af53f25e2471cb241a.tar.bz2 |
Update jquery.jtable.sorting.js
Fix for defaultSorting not working with field named Description (e.g. defaultSorting: "Description ASC")
-rw-r--r-- | dev/jquery.jtable.sorting.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/jquery.jtable.sorting.js b/dev/jquery.jtable.sorting.js index 0cd4479..932dbe7 100644 --- a/dev/jquery.jtable.sorting.js +++ b/dev/jquery.jtable.sorting.js @@ -84,7 +84,7 @@ if (fieldProps.sorting) {
var colOffset = orderValue.indexOf(fieldName);
if (colOffset > -1) {
- if (orderValue.toUpperCase().indexOf('DESC', colOffset) > -1) {
+ if (orderValue.toUpperCase().indexOf(' DESC', colOffset) > -1) {
self._lastSorting.push({
fieldName: fieldName,
sortOrder: 'DESC'
@@ -181,4 +181,4 @@ });
-})(jQuery);
\ No newline at end of file +})(jQuery); |