ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [1/2] incubator-ignite git commit: # IGNITE-843 Added [reordering] option for panel with table.
Date Wed, 17 Jun 2015 09:51:20 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 d623c9da7 -> fa1906def


# IGNITE-843 Added [reordering] option for panel with table.


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

Branch: refs/heads/ignite-843
Commit: 122eb31f613ab587554dba1f6cbefbb49928edb9
Parents: e139662
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Wed Jun 17 16:49:34 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Wed Jun 17 16:49:34 2015 +0700

----------------------------------------------------------------------
 modules/webconfig/nodejs/public/form-models/clusters.json | 1 +
 modules/webconfig/nodejs/views/includes/controls.jade     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/122eb31f/modules/webconfig/nodejs/public/form-models/clusters.json
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/public/form-models/clusters.json b/modules/webconfig/nodejs/public/form-models/clusters.json
index ab8c56f..4236192 100644
--- a/modules/webconfig/nodejs/public/form-models/clusters.json
+++ b/modules/webconfig/nodejs/public/form-models/clusters.json
@@ -28,6 +28,7 @@
               "type": "table-simple",
               "model": "addresses",
               "editIdx": -1,
+              "reordering": true,
               "placeholder": "IP address",
               "tip": [
                 "Addresses may be represented as follows:",

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/122eb31f/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 de19f9f..994cdcd 100644
--- a/modules/webconfig/nodejs/views/includes/controls.jade
+++ b/modules/webconfig/nodejs/views/includes/controls.jade
@@ -64,7 +64,7 @@ mixin details-row
                                     i.tipField.fa.fa-floppy-o(ng-click='detail.editIdx =
-1; #{detailMdl}[$index]=curValue')
                                     .input-tip
                                         input.form-control(type='text' ng-model='curValue'
placeholder='{{detail.placeholder}}')
-                            td.col-sm-1
+                            td.col-sm-1(ng-if='detail.reordering')
                                 i.fa.fa-arrow-up(ng-show='$index > 0' ng-click='detail.editIdx
= -1')
                                 i.fa.fa-arrow-down(ng-show='$index < #{detailMdl}.length
- 1' ng-click='detail.editIdx = -1')
             .details-label
@@ -147,7 +147,7 @@ mixin form-row
                                     i.tipField.fa.fa-floppy-o(ng-click='field.editIdx = -1;
#{tblMdl}[$index]=curValue')
                                     .input-tip
                                         input.form-control(type='text' ng-model='curValue'
placeholder='{{field.placeholder}}')
-                            td.col-sm-1
+                            td.col-sm-1(ng-if='field.reordering')
                                 i.fa.fa-arrow-up(ng-show='$index > 0' ng-click='field.editIdx
= -1')
                                 i.fa.fa-arrow-down(ng-show='$index < #{tblMdl}.length
- 1' ng-click='field.editIdx = -1')
             .col-sm-5


Mime
View raw message