Permalink
Browse files

1.3

Fixed "class" attribute to work with IE8
  • Loading branch information...
1 parent 236d2db commit 1139b0cac51f5139c1c381633f5fb47fabb6cbd4 @marcosesperon committed Mar 13, 2013
Showing with 6 additions and 6 deletions.
  1. +4 −4 messi.js
  2. +2 −2 messi.min.js
View
@@ -1,5 +1,5 @@
/*
- * jQuery Messi Plugin 1.2
+ * jQuery Messi Plugin 1.3
* https://github.com/marcosesperon/jquery-messi
*
* Copyright 2012, Marcos Esperón
@@ -54,7 +54,7 @@ function Messi(data, options) {
for (var i = 0; i < _this.options.buttons.length; i++) {
- var cls = (_this.options.buttons[i].class) ? _this.options.buttons[i].class : '';
+ var cls = (_this.options.buttons[i]["class"]) ? _this.options.buttons[i]["class"] : '';
var btn = jQuery('<div class="btnbox"><button class="btn ' + cls + '" href="#">' + _this.options.buttons[i].label + '</button></div>').data('value', _this.options.buttons[i].val);
btn.bind('click', function() {
var value = jQuery.data(this, 'value');
@@ -221,8 +221,8 @@ jQuery.extend(Messi, {
ask: function(data, callback, options) {
var buttons = [
- {id: 'yes', label: 'Yes', val: 'Y', class: 'btn-success'},
- {id: 'no', label: 'No', val: 'N', class: 'btn-danger'},
+ {id: 'yes', label: 'Yes', val: 'Y', "class": 'btn-success'},
+ {id: 'no', label: 'No', val: 'N', "class": 'btn-danger'},
];
options = jQuery.extend({closeButton: false, modal: true, buttons: buttons, callback:function() {}}, options || {}, {show: true, unload: true, callback: callback});
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 1139b0c

Please sign in to comment.