mirror of https://github.com/layui/layer
parent
0018e1a54f
commit
ab1639049c
|
@ -1003,7 +1003,7 @@ layer.prompt = function(options, yes){
|
||||||
,resize: false
|
,resize: false
|
||||||
,yes: function(index){
|
,yes: function(index){
|
||||||
var value = prompt.val();
|
var value = prompt.val();
|
||||||
if(value === ''){
|
if(!options.allowNull && value === ''){
|
||||||
prompt.focus();
|
prompt.focus();
|
||||||
} else if(value.length > (options.maxlength||500)) {
|
} else if(value.length > (options.maxlength||500)) {
|
||||||
layer.tips('最多输入'+ (options.maxlength || 500) +'个字数', prompt, {tips: 1});
|
layer.tips('最多输入'+ (options.maxlength || 500) +'个字数', prompt, {tips: 1});
|
||||||
|
|
Loading…
Reference in New Issue