MAPREDUCE-3045. Fixed UI filters to not filter on hidden title-numeric sort fields. Contributed by Jonathan Eagles
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1207714 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
68f56ca906
commit
784a4a3084
@ -119,6 +119,9 @@ Release 0.23.1 - Unreleased
|
|||||||
MAPREDUCE-3413. RM web ui applications not sorted in any order by default.
|
MAPREDUCE-3413. RM web ui applications not sorted in any order by default.
|
||||||
(Jonathan Eagles via mahadev)
|
(Jonathan Eagles via mahadev)
|
||||||
|
|
||||||
|
MAPREDUCE-3045. Fixed UI filters to not filter on hidden title-numeric
|
||||||
|
sort fields. (Jonathan Eagles via sseth)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -2,6 +2,11 @@ if (!jQuery.fn.dataTableExt.fnVersionCheck("1.7.5")) {
|
|||||||
alert("These plugins requires dataTables 1.7.5+");
|
alert("These plugins requires dataTables 1.7.5+");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// don't filter on hidden html elements for an sType of title-numeric
|
||||||
|
$.fn.dataTableExt.ofnSearch['title-numeric'] = function ( sData ) {
|
||||||
|
return sData.replace(/\n/g," ").replace( /<.*?>/g, "" );
|
||||||
|
}
|
||||||
|
|
||||||
// 'title-numeric' sort type
|
// 'title-numeric' sort type
|
||||||
jQuery.fn.dataTableExt.oSort['title-numeric-asc'] = function(a,b) {
|
jQuery.fn.dataTableExt.oSort['title-numeric-asc'] = function(a,b) {
|
||||||
var x = a.match(/title=["']?(-?\d+\.?\d*)/)[1];
|
var x = a.match(/title=["']?(-?\d+\.?\d*)/)[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user