Commit 2f3a71cc authored by David Stutz's avatar David Stutz

Manual diff.

parent 6b213195
...@@ -60,11 +60,7 @@ ...@@ -60,11 +60,7 @@
} }
this.$container = $(this.options.buttonContainer) this.$container = $(this.options.buttonContainer)
<<<<<<< HEAD
.append('<button type="button" class="multiselect dropdown-toggle ' + this.options.buttonClass + '" data-toggle="dropdown">' + this.options.buttonText($('option:selected', select)) + '</button>')
=======
.append('<button type="button" class="multiselect dropdown-toggle ' + this.options.buttonClass + '" data-toggle="dropdown">' + this.options.buttonText($('option:selected', select), this.$select) + '</button>') .append('<button type="button" class="multiselect dropdown-toggle ' + this.options.buttonClass + '" data-toggle="dropdown">' + this.options.buttonText($('option:selected', select), this.$select) + '</button>')
>>>>>>> origin/gh-pages
.append('<ul class="dropdown-menu"></ul>'); .append('<ul class="dropdown-menu"></ul>');
if (this.options.buttonWidth) { if (this.options.buttonWidth) {
...@@ -95,11 +91,7 @@ ...@@ -95,11 +91,7 @@
// Default text function will either print 'None selected' in case no option is selected, // Default text function will either print 'None selected' in case no option is selected,
// or a list of the selected options up to a length of 3 selected options. // or a list of the selected options up to a length of 3 selected options.
// If more than 3 options are selected, the number of selected options is printed. // If more than 3 options are selected, the number of selected options is printed.
<<<<<<< HEAD
buttonText: function(options) {
=======
buttonText: function(options, select) { buttonText: function(options, select) {
>>>>>>> origin/gh-pages
if (options.length == 0) { if (options.length == 0) {
return 'None selected <b class="caret"></b>'; return 'None selected <b class="caret"></b>';
} }
...@@ -194,11 +186,7 @@ ...@@ -194,11 +186,7 @@
} }
var options = $('option:selected', this.$select); var options = $('option:selected', this.$select);
<<<<<<< HEAD
$('button', this.$container).html(this.options.buttonText(options));
=======
$('button', this.$container).html(this.options.buttonText(options, this.$select)); $('button', this.$container).html(this.options.buttonText(options, this.$select));
>>>>>>> origin/gh-pages
this.options.onChange(option, checked); this.options.onChange(option, checked);
}, this)); }, this));
...@@ -227,11 +215,7 @@ ...@@ -227,11 +215,7 @@
} }
}, this)); }, this));
<<<<<<< HEAD
$('button', this.$container).html(this.options.buttonText($('option:selected', this.$select)));
=======
$('button', this.$container).html(this.options.buttonText($('option:selected', this.$select), this.$select)); $('button', this.$container).html(this.options.buttonText($('option:selected', this.$select), this.$select));
>>>>>>> origin/gh-pages
}, },
// Select an option by its value. // Select an option by its value.
...@@ -246,11 +230,7 @@ ...@@ -246,11 +230,7 @@
option.prop('selected', 'selected'); option.prop('selected', 'selected');
var options = $('option:selected', this.$select); var options = $('option:selected', this.$select);
<<<<<<< HEAD
$('button', this.$container).html(this.options.buttonText(options));
=======
$('button', this.$container).html(this.options.buttonText(options, this.$select)); $('button', this.$container).html(this.options.buttonText(options, this.$select));
>>>>>>> origin/gh-pages
}, },
// Deselect an option by its value. // Deselect an option by its value.
...@@ -265,11 +245,7 @@ ...@@ -265,11 +245,7 @@
option.removeProp('selected'); option.removeProp('selected');
var options = $('option:selected', this.$select); var options = $('option:selected', this.$select);
<<<<<<< HEAD
$('button', this.$container).html(this.options.buttonText(options));
=======
$('button', this.$container).html(this.options.buttonText(options, this.$select)); $('button', this.$container).html(this.options.buttonText(options, this.$select));
>>>>>>> origin/gh-pages
}, },
// Rebuild the whole dropdown menu. // Rebuild the whole dropdown menu.
......
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