...
|
...
|
@@ -3,7 +3,8 @@ |
|
|
* @author: bikai<kai.bi@yoho.cn>
|
|
|
* @date: 2015/10/28
|
|
|
*/
|
|
|
var $ = require('jquery');
|
|
|
var $ = require('jquery'),
|
|
|
security = require('../plugin/security');
|
|
|
|
|
|
var $searchBox = $('.search-box'),
|
|
|
$box = $('.box'),
|
...
|
...
|
@@ -52,6 +53,9 @@ $searchBox.children('.clear-text').on('touchstart', function() { |
|
|
});
|
|
|
|
|
|
$searchBox.children('.search-icon').on('touchstart', function() {
|
|
|
if (security.hasDangerInput()) {
|
|
|
return false;
|
|
|
}
|
|
|
$indexSearch.submit();
|
|
|
});
|
|
|
|
...
|
...
|
|