You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2016/01/28 08:41:55 UTC

ignite git commit: IGNITE-2482 Fix unsaved changes.

Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 66db2735d -> a9c71fa5a


IGNITE-2482 Fix unsaved changes.


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

Branch: refs/heads/ignite-843-rc2
Commit: a9c71fa5ae968b7651392cd36a40bbde938a81a6
Parents: 66db273
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Thu Jan 28 14:41:54 2016 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Thu Jan 28 14:41:54 2016 +0700

----------------------------------------------------------------------
 .../control-center-web/src/main/js/controllers/common-module.js    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/a9c71fa5/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index cc7eb3e..8903632 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -1144,7 +1144,7 @@ consoleModule.service('$unsavedChangesGuard', function ($rootScope) {
             });
 
             var unbind = $rootScope.$on('$stateChangeStart', function(event) {
-                if ($scope.ui && $scope.ui.isDirty()) {
+                if ($scope.ui && ($scope.ui.isDirty() || ($scope.ui.inputForm && $scope.ui.inputForm.$dirty))) {
                     if (!confirm('You have unsaved changes.\n\nAre you sure you want to discard them?')) {
                         event.preventDefault();
                     } else {