ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject ignite git commit: ignite-843 Fixed QuotaExceededError in Safari Private Browser Mode.
Date Wed, 07 Oct 2015 05:49:38 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843 3808807ca -> db54c1d4e


ignite-843 Fixed QuotaExceededError in Safari Private Browser Mode.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/db54c1d4
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/db54c1d4
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/db54c1d4

Branch: refs/heads/ignite-843
Commit: db54c1d4e73a6fab87cf8bc6e892f9ed329e672c
Parents: 3808807
Author: Andrey <anovikov@gridgain.com>
Authored: Wed Oct 7 12:49:29 2015 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Wed Oct 7 12:49:29 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/caches-controller.js         | 11 +++++++----
 .../src/main/js/controllers/clusters-controller.js       | 11 +++++++----
 .../src/main/js/controllers/metadata-controller.js       | 11 +++++++----
 3 files changed, 21 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/db54c1d4/modules/control-center-web/src/main/js/controllers/caches-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/caches-controller.js b/modules/control-center-web/src/main/js/controllers/caches-controller.js
index 5e657a4..9062d58 100644
--- a/modules/control-center-web/src/main/js/controllers/caches-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/caches-controller.js
@@ -359,10 +359,13 @@ consoleModule.controller('cachesController', [
 
                     $scope.selectedItem = angular.copy(item);
 
-                    if (item)
-                        sessionStorage.lastSelectedCache = angular.toJson(item._id);
-                    else
-                        sessionStorage.removeItem('lastSelectedCache');
+                    try {
+                        if (item)
+                            sessionStorage.lastSelectedCache = angular.toJson(item._id);
+                        else
+                            sessionStorage.removeItem('lastSelectedCache');
+                    }
+                    catch (error) { }
 
                     _.forEach(previews, function(preview) {
                         preview.attractAttention = false;

http://git-wip-us.apache.org/repos/asf/ignite/blob/db54c1d4/modules/control-center-web/src/main/js/controllers/clusters-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/clusters-controller.js b/modules/control-center-web/src/main/js/controllers/clusters-controller.js
index 9ecb7d5..20231f3 100644
--- a/modules/control-center-web/src/main/js/controllers/clusters-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/clusters-controller.js
@@ -300,10 +300,13 @@ consoleModule.controller('clustersController', [
 
                 $scope.selectedItem = angular.copy(item);
 
-                if (item && item._id)
-                    sessionStorage.lastSelectedCluster = angular.toJson(item._id);
-                else
-                    sessionStorage.removeItem('lastSelectedCluster');
+                try {
+                    if (item && item._id)
+                        sessionStorage.lastSelectedCluster = angular.toJson(item._id);
+                    else
+                        sessionStorage.removeItem('lastSelectedCluster');
+                }
+                catch (error) { }
 
                 _.forEach(previews, function(preview) {
                     preview.attractAttention = false;

http://git-wip-us.apache.org/repos/asf/ignite/blob/db54c1d4/modules/control-center-web/src/main/js/controllers/metadata-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/metadata-controller.js b/modules/control-center-web/src/main/js/controllers/metadata-controller.js
index abf642f..6c64c58 100644
--- a/modules/control-center-web/src/main/js/controllers/metadata-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/metadata-controller.js
@@ -733,10 +733,13 @@ consoleModule.controller('metadataController', [
 
                     $scope.selectedItem = angular.copy(item);
 
-                    if (item && item._id)
-                        sessionStorage.lastSelectedMetadata = angular.toJson(item._id);
-                    else
-                        sessionStorage.removeItem('lastSelectedMetadata');
+                    try {
+                        if (item && item._id)
+                            sessionStorage.lastSelectedMetadata = angular.toJson(item._id);
+                        else
+                            sessionStorage.removeItem('lastSelectedMetadata');
+                    }
+                    catch (error) { }
 
                     _.forEach(previews, function(preview) {
                         preview.attractAttention = false;


Mime
View raw message