orangain
null+****@clear*****
Tue Sep 10 23:06:30 JST 2013
orangain 2013-09-10 23:06:30 +0900 (Tue, 10 Sep 2013) New Revision: abc1690b50d273010315277aa2837cbd70677367 https://github.com/groonga/groonga/commit/abc1690b50d273010315277aa2837cbd70677367 Merged 1a34eef: Merge pull request #103 from orangain/feature-web-admin Message: admin: show placeholder in search form Usage examples would be useful because typing only keywords, like Google search, results in an error. Modified files: data/html/admin/css/groonga-admin.css data/html/admin/index.html data/html/admin/js/groonga-admin.js Modified: data/html/admin/css/groonga-admin.css (+4 -0) =================================================================== --- data/html/admin/css/groonga-admin.css 2013-09-10 22:21:50 +0900 (72c8d66) +++ data/html/admin/css/groonga-admin.css 2013-09-10 23:06:30 +0900 (09572bc) @@ -28,6 +28,10 @@ input { border: 1px solid; } +input[type="text"] { + width: 12em; +} + #header { height: 80px; background: url(../images/groonga.png) no-repeat left center; Modified: data/html/admin/index.html (+2 -2) =================================================================== --- data/html/admin/index.html 2013-09-10 22:21:50 +0900 (9dfa32c) +++ data/html/admin/index.html 2013-09-10 23:06:30 +0900 (208040a) @@ -144,8 +144,8 @@ <div id="table-tab-recordlist-form-simple"> <label for="tab-recordlist-simplequery">検索クエリ: </label><input type="text" id="tab-recordlist-simplequery"> <select id="tab-recordlist-simplequerytype"> - <option value="query">query</option> - <option value="filter">filter</option> + <option value="query" data-placeholder="例)column:@value">query</option> + <option value="filter" data-placeholder="例)column == "value"">filter</option> </select> <input type="checkbox" id="tab-recordlist-incremental" /><label for="tab-recordlist-incremental" id="tab-recordlist-incremental-label">インクリメンタル検索</label> </div> Modified: data/html/admin/js/groonga-admin.js (+5 -0) =================================================================== --- data/html/admin/js/groonga-admin.js 2013-09-10 22:21:50 +0900 (8f2e676) +++ data/html/admin/js/groonga-admin.js 2013-09-10 23:06:30 +0900 (bf27db7) @@ -228,6 +228,11 @@ function GroongaAdmin() { $('#tab-recordlist-incremental-label').show(); } $('#tab-recordlist-incremental').change(); + + var selectedOption = $(this).find(':selected'); + $('#tab-recordlist-simplequery').attr( + 'placeholder', selectedOption.data('placeholder') + ); }).change(); $('#table-tab-recordlist-full-checkbox').change(function() { -------------- next part -------------- HTML����������������������������... Download