Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9978318B8F for ; Thu, 28 Jan 2016 07:41:55 +0000 (UTC) Received: (qmail 56941 invoked by uid 500); 28 Jan 2016 07:41:55 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 56904 invoked by uid 500); 28 Jan 2016 07:41:55 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 56895 invoked by uid 99); 28 Jan 2016 07:41:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2016 07:41:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 537B2E006B; Thu, 28 Jan 2016 07:41:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: akuznetsov@apache.org To: commits@ignite.apache.org Message-Id: <7b66685f5948447a8a742a9ce73883f8@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ignite git commit: IGNITE-2482 Fix unsaved changes. Date: Thu, 28 Jan 2016 07:41:55 +0000 (UTC) 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 Authored: Thu Jan 28 14:41:54 2016 +0700 Committer: Alexey Kuznetsov 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 {