Skip to content

Commit

Permalink
Merge pull request craftpip#307 from gficher/master
Browse files Browse the repository at this point in the history
Add direct width change to setBoxWidth()
  • Loading branch information
craftpip committed Jul 28, 2017
2 parents 36f18f7 + f2b8e5e commit 124cb77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/jquery-confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,13 @@ var jconfirm, Jconfirm;
'max-height': height + 'px'
});
},
setBoxWidth: function () {
setBoxWidth: function (width) {
if (this.useBootstrap) {
console.warn("cannot set boxWidth, useBootstrap is set to true");
return;
}
this.$jconfirmBox.css('width', this.boxWidth);
this.boxWidth = width;
this.$jconfirmBox.css('width', width);
},
_parseColumnClass: function (colClass) {
colClass = colClass.toLowerCase();
Expand Down

0 comments on commit 124cb77

Please sign in to comment.