Commit 898e671e authored by Neil Monroe's avatar Neil Monroe

Target main button for updates more explicitly.

When updating the button text/title, target only the main button. This allows for additional buttons in templates to remain unaffected. For example, extra buttons in the filter template.
parent a6a76454
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
* Copyright 2012 - 2014 David Stutz * Copyright 2012 - 2014 David Stutz
* *
* Dual licensed under the BSD-3-Clause and the Apache License, Version 2.0. * 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($) { !function($) {
...@@ -994,10 +999,10 @@ ...@@ -994,10 +999,10 @@
var options = this.getSelected(); var options = this.getSelected();
// First update the displayed button text. // 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. // 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