From f0cec55feaed4b39ff92c830aa3db840891a0ce2 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 2 Oct 2013 12:46:36 -0700 Subject: [PATCH] Search bar: add placeholder text --- ui/scripts/ui/widgets/listView.js | 7 ++++++- ui/stylesheets/csui/_list.scss | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js index 632a9548399..5da7253f583 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 = $('
').addClass('text-search reduced-hide'); var $searchBar = $('
').addClass('search-bar reduced hide').appendTo($search); - $searchBar.append(''); + $searchBar.append($( + $('').attr({ + type: 'text', + placeholder: _l('label.search') + }) + )); $search.append(''); if (listViewData.advSearchFields != null) { diff --git a/ui/stylesheets/csui/_list.scss b/ui/stylesheets/csui/_list.scss index 7f0245324a4..6155ca393fb 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%;