Commit 2514256e authored by David Stutz's avatar David Stutz

Merge pull request #502 from jerodev/master

Add a placeholder using data-placeholder attribute
parents e0cb4afe c7184973
......@@ -138,6 +138,11 @@
function Multiselect(select, options) {
this.$select = $(select);
// Placeholder via data attributes
if (this.$select.attr("data-placeholder"))
options.nonSelectedText = this.$select.data("placeholder");
this.options = this.mergeOptions($.extend({}, options, this.$select.data()));
// Initialization.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment