app/assets/javascripts/jqr-helpers.js in jqr-helpers-1.0.17 vs app/assets/javascripts/jqr-helpers.js in jqr-helpers-1.0.18

- old
+ new

@@ -22,10 +22,11 @@ $('.ui-dialog-content:visible').dialog('destroy') .addClass('ujs-dialog-hidden'); } function ujsDialogOpen() { + $(this).css('maxHeight', ($(window).height() * 0.8) + 'px'); if ($(this).parent().height() > $(window).height()) { $(this).height($(window).height() * 0.8); $(this).parent().css('top', Math.max(($(window).height() - $(this).parent().height()) / 2, 1) ); @@ -181,9 +182,13 @@ if ($('.ui-dialog:visible').length) { if (element.data('use-dialog-opener')) targetElement = ujsDialogElement; if (element.data('close-dialog')) ujsDialogClose(); + } + if (element.data('refresh')) { + window.location.reload(); + return; } if (element.data('callback')) { var callback = eval(element.data('callback')); callback.call(targetElement, data); }