|
@@ -27,9 +27,6 @@ var InitialData = {
|
|
'displayLength': {},
|
|
'displayLength': {},
|
|
'startIndex': {},
|
|
'startIndex': {},
|
|
'sortingConditions': {}
|
|
'sortingConditions': {}
|
|
- },
|
|
|
|
- 'access': {
|
|
|
|
- 'showJobsForNonAdmin': ''
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -179,13 +176,6 @@ App.db.setDisplayLength = function(name, displayLength) {
|
|
localStorage.setObject('ambari', App.db.data);
|
|
localStorage.setObject('ambari', App.db.data);
|
|
};
|
|
};
|
|
|
|
|
|
-App.db.setShowJobsForNonAdmin = function(showJobsForNonAdmin) {
|
|
|
|
- console.log('TRACE: Entering db:setShowJobsForNonAdmin function');
|
|
|
|
- App.db.data = localStorage.getObject('ambari');
|
|
|
|
- App.db.data.app.access.showJobsForNonAdmin = showJobsForNonAdmin;
|
|
|
|
- localStorage.setObject('ambari', App.db.data);
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
App.db.setStartIndex = function(name, startIndex) {
|
|
App.db.setStartIndex = function(name, startIndex) {
|
|
console.log('TRACE: Entering db:setStartIndex function');
|
|
console.log('TRACE: Entering db:setStartIndex function');
|
|
App.db.data = localStorage.getObject('ambari');
|
|
App.db.data = localStorage.getObject('ambari');
|
|
@@ -564,15 +554,6 @@ App.db.getDisplayLength = function(name) {
|
|
return null;
|
|
return null;
|
|
};
|
|
};
|
|
|
|
|
|
-App.db.getShowJobsForNonAdmin = function() {
|
|
|
|
- console.log('TRACE: Entering db:getShowJobsForNonAdmin function');
|
|
|
|
- App.db.data = localStorage.getObject('ambari');
|
|
|
|
- if (App.db.data.app.access && typeof (App.db.data.app.access.showJobsForNonAdmin) == "boolean") {
|
|
|
|
- return App.db.data.app.access.showJobsForNonAdmin;
|
|
|
|
- }
|
|
|
|
- return true;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
App.db.getStartIndex = function(name) {
|
|
App.db.getStartIndex = function(name) {
|
|
console.log('TRACE: Entering db:getStartIndex function');
|
|
console.log('TRACE: Entering db:getStartIndex function');
|
|
App.db.data = localStorage.getObject('ambari');
|
|
App.db.data = localStorage.getObject('ambari');
|