Commit e50b62f2 authored by David Stutz's avatar David Stutz

Merge pull request #348 from neilmonroe/master

Target main button for updates more explicitly.
parents 7d654265 898e671e
......@@ -5,6 +5,11 @@
* Copyright 2012 - 2014 David Stutz
*
* Dual licensed under the BSD-3-Clause and the Apache License, Version 2.0.
*
* 2014.07.17 - Neil Monroe (neil.monroe@gmail.com)
* When updating the button text, target only the main button. This allows
* for additional buttons in templates to remain unaffected. For example, extra
* buttons in the filter template.
*/
!function($) {
......@@ -1002,10 +1007,10 @@
var options = this.getSelected();
// First update the displayed button text.
$('button', this.$container).html(this.options.buttonText(options, this.$select));
$('button.multiselect', this.$container).html(this.options.buttonText(options, this.$select));
// Now update the title attribute of the button.
$('button', this.$container).attr('title', this.options.buttonTitle(options, this.$select));
$('button.multiselect', this.$container).attr('title', this.options.buttonTitle(options, this.$select));
},
......
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