Skip to content

Commit

Permalink
Refactored to make sure our buttons are initialised when we expect th…
Browse files Browse the repository at this point in the history
…em to be.

Should look into centralising this functionality.
  • Loading branch information
baphled committed Jul 4, 2010
1 parent 99f4c36 commit 52de0b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/javascripts/application.js
Expand Up @@ -52,7 +52,7 @@ $(document).ready(function() {
// Plugin intialisation
//hover states on the static widgets
$('ul.icons li .handler').button('option', 'icon');
$('button.order_icon').button({ label: "custom label", option: 'text' });
$('button.order_icon, button.button').button({ option: 'text' });
$('#myTabs').tabs();
$('ul.accordion').accordion(accOpts);
$('span#panel, ul.items-list li > span').animateIconPanel(animateIconOpts);
Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/pagination.js
Expand Up @@ -6,7 +6,7 @@ $(function() {
$.get(this.href, null, function() {
// All pagination data needs the following calls so we'll include them here instead
$('ul.icons li .handler').button('option', 'icon');
$('button.order_icon').button({ label: "custom label", option: 'text' });
$('button.order_icon button.button').button({ option: 'text' });
$('div#lists ul').customSortable();
$('ul.items-list li > span').animateIconPanel({eventType: 'click', eventText: 'Click'});
$('a[title]').tipsy({fade: true});
Expand Down

0 comments on commit 52de0b9

Please sign in to comment.