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 2015/06/17 09:44:51 UTC

incubator-ignite git commit: # IGNITE-843 Disable [Add] button in case of duplicate item.

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 32f16859e -> 70a5647da


# IGNITE-843 Disable [Add] button in case of duplicate item.


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

Branch: refs/heads/ignite-843
Commit: 70a5647da48a009485dcb311febffb425d9ff486
Parents: 32f1685
Author: AKuznetsov <ak...@gridgain.com>
Authored: Wed Jun 17 14:44:43 2015 +0700
Committer: AKuznetsov <ak...@gridgain.com>
Committed: Wed Jun 17 14:44:43 2015 +0700

----------------------------------------------------------------------
 modules/webconfig/nodejs/views/includes/controls.jade | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/70a5647d/modules/webconfig/nodejs/views/includes/controls.jade
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/views/includes/controls.jade b/modules/webconfig/nodejs/views/includes/controls.jade
index be9d367..07cea14 100644
--- a/modules/webconfig/nodejs/views/includes/controls.jade
+++ b/modules/webconfig/nodejs/views/includes/controls.jade
@@ -141,5 +141,5 @@ mixin form-row
                                 i.fa.fa-arrow-down(ng-show='$index < #{tblMdl}.length - 1' ng-click='field.editIdx = -1')
             .col-sm-5
                 input.form-control(type='text' ng-model='newValue' placeholder='{{field.placeholder}}')
-            button.btn.btn-primary(style='margin-left: 10px;' ng-disabled='!newValue' ng-click='field.editIdx = -1; addSimpleItem(field.model, newValue)') Add {{field.label}}
+            button.btn.btn-primary(style='margin-left: 10px;' ng-disabled='!newValue || #{tblMdl}.indexOf(newValue) >= 0' ng-click='field.editIdx = -1; addSimpleItem(field.model, newValue)') Add {{field.label}}