Revision 164fdcd9
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js | ||
---|---|---|
265 | 265 |
|
266 | 266 |
|
267 | 267 |
$('#hd-search .hd-icon-search').click(function(e){ |
268 |
var that = this; |
|
268 | 269 |
$(this).parents('.hd-search').toggleClass('hd-open'); |
270 |
if ($(this).parents('.hd-search').hasClass('hd-open')) { |
|
271 |
$(that).parents('.hd-search').find('input[type="search"]').focus(); |
|
272 |
} else { |
|
273 |
$(that).parents('.hd-search').find('input[type="search"]').val(''); |
|
274 |
} |
|
269 | 275 |
}) |
270 | 276 |
|
277 |
|
|
271 | 278 |
ui.setSidebarHeight(); |
272 | 279 |
ui.closeDiv($('.info .close'), '.info'); |
273 | 280 |
ui.editable(); |
Also available in: Unified diff