ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-2482 Fix unsaved changes.
Date Thu, 28 Jan 2016 07:41:55 GMT
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 <akuznetsov@apache.org>
Authored: Thu Jan 28 14:41:54 2016 +0700
Committer: Alexey Kuznetsov <akuznetsov@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 {


Mime
View raw message