diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 5cd38e6d0..9d27c0463 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -209,7 +209,9 @@ function showModal(id, width) { $('modalbg').show(); var pageWidth = document.viewport.getWidth(); - el.setStyle({'width': width}); + if (width) { + el.setStyle({'width': width}); + } el.setStyle({'left': (((pageWidth - el.getWidth())/2 *100) / pageWidth) + '%'}); el.addClassName('modal'); el.show(); |