added vendor directory and gulp support for better dependency organization and compiling less and js files
removed timeline css and merged it with the theme css and added gulp support for a browser sync task as well for easier development removed composer package until the repo issue is resolved - added minified versions into the bower.json for when the repo issue is resolved
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
/**
|
||||
* Sorting in Javascript for Chinese Character. The Chinese Characters are
|
||||
* sorted on the radical and number of strokes. This plug-in performs sorting
|
||||
* for Chinese characters using the Javascript [localeCompare](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare)
|
||||
* function.
|
||||
*
|
||||
* Please note that `localeCompare` is not implemented in the same way in all
|
||||
* browsers, potentially leading to different results (particularly in IE).
|
||||
*
|
||||
* @name Chinese (string)
|
||||
* @summary Sort Chinese characters
|
||||
* @author [Patrik Lindström](http://www.lcube.se/sorting-chinese-characters-in-javascript/)
|
||||
*
|
||||
* @example
|
||||
* $('#example').dataTable( {
|
||||
* columnDefs: [
|
||||
* { type: 'chinese-string', targets: 0 }
|
||||
* ]
|
||||
* } );
|
||||
*/
|
||||
|
||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
"chinese-string-asc" : function (s1, s2) {
|
||||
return s1.localeCompare(s2);
|
||||
},
|
||||
|
||||
"chinese-string-desc" : function (s1, s2) {
|
||||
return s2.localeCompare(s1);
|
||||
}
|
||||
} );
|
||||
/**
|
||||
* Sorting in Javascript for Chinese Character. The Chinese Characters are
|
||||
* sorted on the radical and number of strokes. This plug-in performs sorting
|
||||
* for Chinese characters using the Javascript [localeCompare](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/localeCompare)
|
||||
* function.
|
||||
*
|
||||
* Please note that `localeCompare` is not implemented in the same way in all
|
||||
* browsers, potentially leading to different results (particularly in IE).
|
||||
*
|
||||
* @name Chinese (string)
|
||||
* @summary Sort Chinese characters
|
||||
* @author [Patrik Lindström](http://www.lcube.se/sorting-chinese-characters-in-javascript/)
|
||||
*
|
||||
* @example
|
||||
* $('#example').dataTable( {
|
||||
* columnDefs: [
|
||||
* { type: 'chinese-string', targets: 0 }
|
||||
* ]
|
||||
* } );
|
||||
*/
|
||||
|
||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
||||
"chinese-string-asc" : function (s1, s2) {
|
||||
return s1.localeCompare(s2);
|
||||
},
|
||||
|
||||
"chinese-string-desc" : function (s1, s2) {
|
||||
return s2.localeCompare(s1);
|
||||
}
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user