From 7c415add9f246df987667c9a364b09d3d4b5ebd4 Mon Sep 17 00:00:00 2001 From: Eli Dupuis Date: Tue, 25 Oct 2011 21:41:24 -0600 Subject: [PATCH] combined calls to $.addclass --- jquery.modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.modal.js b/jquery.modal.js index 4459706..8e81971 100644 --- a/jquery.modal.js +++ b/jquery.modal.js @@ -45,7 +45,7 @@ current_modal.closeButton = $('' + options.closeText + ''); 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]); }