1
0
mirror of synced 2024-11-26 14:56:07 +03:00

fix options with empty values. fixes #1497

This commit is contained in:
Igor Vaynberg 2013-07-09 00:14:48 -07:00
parent 247223add7
commit 1f09c7abaf

View File

@ -1,4 +1,4 @@
/*
/*
Copyright 2012 Igor Vaynberg
Version: @@ver@@ Timestamp: @@timestamp@@
@ -2057,7 +2057,8 @@ the specific language governing permissions and limitations under the Apache Lic
isPlaceholderOptionSelected: function() {
var placeholderOption;
return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected')) ||
return this.opts.placeholder &&
((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected')) ||
(this.opts.element.val() === "") ||
(this.opts.element.val() === undefined) ||
(this.opts.element.val() === null);