You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/10/02 21:46:47 UTC

git commit: updated refs/heads/ui-restyle to f0cec55

Updated Branches:
  refs/heads/ui-restyle 8978f8cd8 -> f0cec55fe


Search bar: add placeholder text


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f0cec55f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f0cec55f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f0cec55f

Branch: refs/heads/ui-restyle
Commit: f0cec55feaed4b39ff92c830aa3db840891a0ce2
Parents: 8978f8c
Author: Brian Federle <br...@citrix.com>
Authored: Wed Oct 2 12:46:36 2013 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Wed Oct 2 12:46:36 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/listView.js | 7 ++++++-
 ui/stylesheets/csui/_list.scss    | 2 ++
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f0cec55f/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index 632a954..5da7253 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -853,7 +853,12 @@
     var createSearchBar = function($toolbar, listViewData) {
         var $search = $('<div></div>').addClass('text-search reduced-hide');
         var $searchBar = $('<div></div>').addClass('search-bar reduced hide').appendTo($search);
-        $searchBar.append('<input type="text" />');
+        $searchBar.append($(
+            $('<input>').attr({
+                type: 'text',
+                placeholder: _l('label.search')
+            })
+        ));
         $search.append('<div id="basic_search" class="button search"></div>');
 
         if (listViewData.advSearchFields != null) {

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f0cec55f/ui/stylesheets/csui/_list.scss
----------------------------------------------------------------------
diff --git a/ui/stylesheets/csui/_list.scss b/ui/stylesheets/csui/_list.scss
index 7f02453..6155ca3 100644
--- a/ui/stylesheets/csui/_list.scss
+++ b/ui/stylesheets/csui/_list.scss
@@ -15,6 +15,8 @@
 // specific language governing permissions and limitations
 // under the License.
 @mixin csui-list {
+    margin: 20px;
+    
     table {
         width: 100%;