Authored by biao

update the coding format

... ... @@ -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();
});
... ...
... ... @@ -49,7 +49,7 @@ cHammer.on('tap', function() {
$('#search').on('touchend', function() {
if (security.hasDangerInput()) {
return false;
return false;
}
$(this).closest('form').submit();
return false;
... ...