Skip to content

Commit f0cec55

Browse files
committed
Search bar: add placeholder text
1 parent 8978f8c commit f0cec55

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎ui/scripts/ui/widgets/listView.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,12 @@
853853
var createSearchBar = function($toolbar, listViewData) {
854854
var $search = $('<div></div>').addClass('text-search reduced-hide');
855855
var $searchBar = $('<div></div>').addClass('search-bar reduced hide').appendTo($search);
856-
$searchBar.append('<input type="text" />');
856+
$searchBar.append($(
857+
$('<input>').attr({
858+
type: 'text',
859+
placeholder: _l('label.search')
860+
})
861+
));
857862
$search.append('<div id="basic_search" class="button search"></div>');
858863

859864
if (listViewData.advSearchFields != null) {

‎ui/stylesheets/csui/_list.scss‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717
@mixin csui-list {
18+
margin: 20px;
19+
1820
table {
1921
width: 100%;
2022

0 commit comments

Comments
 (0)