1
0
mirror of synced 2024-11-30 00:26:03 +03:00

fix missing placeholder. closes #1614

This commit is contained in:
Igor Vaynberg 2013-08-14 16:57:26 -07:00
parent 236fb0ea23
commit c4529b8700

View File

@ -2084,7 +2084,7 @@ the specific language governing permissions and limitations under the Apache Lic
isPlaceholderOptionSelected: function() { isPlaceholderOptionSelected: function() {
var placeholderOption; var placeholderOption;
if (!this.opts.placeholder) return false; // no placeholder specified so no option should be considered if (!this.getPlaceholder()) return false; // no placeholder specified so no option should be considered
return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected')) return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.is(':selected'))
|| (this.opts.element.val() === "") || (this.opts.element.val() === "")
|| (this.opts.element.val() === undefined) || (this.opts.element.val() === undefined)