use modal-lg instead of width 80%

This commit is contained in:
Mario Vavti 2016-11-16 14:17:10 +01:00
parent 90a97ae35f
commit 14cfa90d63

View File

@ -408,8 +408,7 @@
if (data.success) {
var modalBody = $('#generic-modal-body-{{$wikiModalID}}');
modalBody.html('<div class="descriptive-text">'+data.diff+'</div>');
// this does not work well on small devices
//$('.modal-dialog').width('80%');
$('.modal-dialog').addClass('modal-lg');
$("#generic-modal-ok-{{$wikiModalID}}").off('click');
$("#generic-modal-ok-{{$wikiModalID}}").click(function () {
wiki_revert_page(compareCommit);