Authored by 马力

phrase limit

... ... @@ -134,6 +134,9 @@ $(document).on("click", "#saveAllInfo", function() {
if($.trim($("#productName").val()) == ""){
window.IS_OVER = true;
common.util.__tip("商品名称为空", 'warning');
} else if ($.trim($("#phrase").val()) != "" && $.trim($("#phrase").val()).length < 60) {
window.IS_OVER = true;
common.util.__tip("推荐短语不能少于60个字符", 'warning');
}else{
$("#saveBasicInfo").click();
$("#fenMainSave").click();
... ...
... ... @@ -245,8 +245,8 @@ $(document).on("change",":radio[name=isLimited]",function(){
$('#saveBasicInfo').on('click', function() {
var phraseValue = common.util.__input('phrase');
if (phraseValue && phraseValue != '' && phraseValue.length < 60) {
util.__tip("推荐短语不少于60字符");
if (phraseValue && phraseValue != '' && phraseValue.trim().length < 60) {
util.__tip("推荐短语不能少于60个字符", 'warning');
return;
}
... ...