[Lada-commits] [PATCH] Added search icon

Wald Commits scm-commit at wald.intevation.org
Thu Mar 16 14:40:07 CET 2017


# HG changeset patch
# User Evi Huber <ehuber at bfs.de>
# Date 1489671596 -3600
# Branch release-2.5
# Node ID 954c77216b2d07ecb806287a7c8dd2669137a14a
# Parent  418b9afee700cc750f539386152532ae31bd39b4
Added search icon

diff -r 418b9afee700 -r 954c77216b2d app/view/FilterPanel.js
--- a/app/view/FilterPanel.js	Wed Mar 15 09:56:44 2017 +0100
+++ b/app/view/FilterPanel.js	Thu Mar 16 14:39:56 2017 +0100
@@ -72,6 +72,7 @@
             items: [{
                 xtype: 'button',
                 action: 'search',
+                icon: 'resources/img/Find.png',
                 text: 'Suchen',
                 margin: '0 10 0 0'
             }, {
diff -r 418b9afee700 -r 954c77216b2d app/view/window/Ortszuordnung.js
--- a/app/view/window/Ortszuordnung.js	Wed Mar 15 09:56:44 2017 +0100
+++ b/app/view/window/Ortszuordnung.js	Thu Mar 16 14:39:56 2017 +0100
@@ -135,13 +135,16 @@
                 }],
                 dockedItems: [{
                     xtype: 'toolbar',
-                    dock: 'bottom',
+                    dock: 'top',
                     items: [{
                         xtype: 'textfield',
                         name: 'search',
-                        labelWidth: 50,
+                        icon: 'resources/img/Find.png',
+                        width: '150px',
                         enableKeyEvents: true,
-                        fieldLabel: i18n.getMsg('ortszuordnung.ortsuche')
+                        emptyText: 'Ortssuche',
+                        emptyCls: 'empty-text-field',
+                        fieldLabel: ''
                     }, '->', {
                         text: i18n.getMsg('orte.new'),
                         icon: 'resources/img/list-add.png',
diff -r 418b9afee700 -r 954c77216b2d resources/css/lada.css
--- a/resources/css/lada.css	Wed Mar 15 09:56:44 2017 +0100
+++ b/resources/css/lada.css	Thu Mar 16 14:39:56 2017 +0100
@@ -85,3 +85,10 @@
 .row-expander-grid .x-grid-with-row-lines .x-grid-td {
     border-bottom: 1px solid #e0e0e0;
 }
+
+.empty-text-field {
+    background-image:url('../img/Find.png');
+    background-repeat: no-repeat;
+    background-position: left 5px center;
+    padding-left: 20px;
+}


More information about the Lada-commits mailing list