Skip to content

Commit

Permalink
combined calls to $.addclass
Browse files Browse the repository at this point in the history
  • Loading branch information
elidupuis committed Oct 26, 2011
1 parent d83677c commit 7c415ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
current_modal.closeButton = $('<a href="#close-modal" rel="modal:close" class="close-modal">' + options.closeText + '</a>');
current_modal.elm.append(current_modal.closeButton);
}
$elm.addClass(options.modalClass).addClass('current').show();
$elm.addClass(options.modalClass + ' current').show();
$elm.trigger($.fn.modal.OPEN, [current_modal]);
}

Expand Down

0 comments on commit 7c415ad

Please sign in to comment.