Changeset 1625
- Timestamp:
- Mar 11, 2011, 12:55:57 PM (11 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/HomeController.groovy
r1590 r1625 136 136 137 137 // search templates 138 Template.createCriteria().list {138 Template.createCriteria().listDistinct { 139 139 or { 140 140 ilike("name", "%${query}%") … … 155 155 result.total = result.data.size() 156 156 157 // got results? 158 if (!result.total) { 159 result.data << [ 160 link : '', 161 name : "no results", 162 category: "" 163 ] 164 } 165 157 166 // render result 158 167 if (params.callback) { -
trunk/grails-app/views/home/index.gsp
r1619 r1625 220 220 minLength: 2, 221 221 select: function(event, ui) { 222 // redirect 223 window.location = ui.item.value; 222 // redirect ? 223 if (ui.item.value) { 224 // hide, so the URL does not show in the input field 225 quickSearch.css( { 'display': 'none' } ); 226 227 // and redirect 228 window.location = ui.item.value; 229 } 224 230 }, 225 231 open: function() {
Note: See TracChangeset
for help on using the changeset viewer.