YARN-2238. Filtering on UI sticks even if I move away from the page.

Contributed by Jian He
This commit is contained in:
Xuan 2015-05-25 22:39:16 -07:00
parent ada233b7cd
commit 39077dba2e
2 changed files with 9 additions and 2 deletions

View File

@ -555,6 +555,9 @@ Release 2.7.1 - UNRELEASED
YARN-3701. Isolating the error of generating a single app report when
getting all apps from generic history service. (Zhijie Shen via xgong)
YARN-2238. filtering on UI sticks even if I move away from the page.
(Jian He via xgong)
Release 2.7.0 - 2015-04-20
INCOMPATIBLE CHANGES

View File

@ -113,8 +113,12 @@ protected void initAccordions(List<String> list) {
protected void initDataTables(List<String> list) {
String defaultInit = "{bJQueryUI: true, sPaginationType: 'full_numbers'}";
String stateSaveInit = "bStateSave : true, " +
"\"fnStateSave\": function (oSettings, oData) { " +
"sessionStorage.setItem( oSettings.sTableId, JSON.stringify(oData) ); }, " +
"\"fnStateSave\": function (oSettings, oData) { " +
" data = oData.aoSearchCols;"
+ "for(i =0 ; i < data.length; i ++) {"
+ "data[i].sSearch = \"\""
+ "}"
+ " sessionStorage.setItem( oSettings.sTableId, JSON.stringify(oData) ); }, " +
"\"fnStateLoad\": function (oSettings) { " +
"return JSON.parse( sessionStorage.getItem(oSettings.sTableId) );}, ";