', actions: { always: function () { } }, buttons: [ ] }); if (width && $(window).width() >= 1024) { setTimeout(function(){ var $e = $('.' + popupClass + ' .modal-inner-wrap'); $e.attr('style', ($e.attr('style') ? $e.attr('style') + '; ' : '') + 'width:' + width + '!important' ); }, 500); } return false; }); }); });