|
|
@@ -47,19 +47,12 @@ function (angular, _, $) {
|
|
|
};
|
|
|
|
|
|
DashboardViewState.prototype.getQueryStringState = function() {
|
|
|
- var queryParams = $location.search();
|
|
|
- var urlState = {
|
|
|
- panelId: parseInt(queryParams.panelId) || null,
|
|
|
- fullscreen: queryParams.fullscreen ? true : false,
|
|
|
- edit: queryParams.edit ? true : false,
|
|
|
- };
|
|
|
-
|
|
|
- _.each(queryParams, function(value, key) {
|
|
|
- if (key.indexOf('var-') !== 0) { return; }
|
|
|
- urlState[key] = value;
|
|
|
- });
|
|
|
+ var state = $location.search();
|
|
|
+ state.panelId = parseInt(state.panelId) || null;
|
|
|
+ state.fullscreen = state.fullscreen ? true : false;
|
|
|
+ state.edit = state.edit ? true : false;
|
|
|
|
|
|
- return urlState;
|
|
|
+ return state;
|
|
|
};
|
|
|
|
|
|
DashboardViewState.prototype.serializeToUrl = function() {
|