Skip to content

Commit 124cb77

Browse files
authored
Merge pull request #307 from gficher/master
Add direct width change to setBoxWidth()
2 parents 36f18f7 + f2b8e5e commit 124cb77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/jquery-confirm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,13 @@ var jconfirm, Jconfirm;
375375
'max-height': height + 'px'
376376
});
377377
},
378-
setBoxWidth: function () {
378+
setBoxWidth: function (width) {
379379
if (this.useBootstrap) {
380380
console.warn("cannot set boxWidth, useBootstrap is set to true");
381381
return;
382382
}
383-
this.$jconfirmBox.css('width', this.boxWidth);
383+
this.boxWidth = width;
384+
this.$jconfirmBox.css('width', width);
384385
},
385386
_parseColumnClass: function (colClass) {
386387
colClass = colClass.toLowerCase();

0 commit comments

Comments
 (0)