Authored by biao

update for text length limit

... ... @@ -450,6 +450,18 @@ function bindUploadEvent() {
});
}
function bindKeyUpEvent() {
$('.mark-text').on('keyup', function() {
var $this = $(this),
str = $.trim($this.val());
if (str.length > 100) {
str = str.substring(0, 100);
}
$this.val(str);
});
}
$(document).on('ready', function() {
getProductInfo();
bindSelectEvent();
... ... @@ -459,4 +471,5 @@ $(document).on('ready', function() {
initAddr($('#city').data('code'));
bindBlurEvent();
bindUploadEvent();
bindKeyUpEvent();
});
... ...