@@ -209,7 +209,9 function showModal(id, width) { | |||
|
209 | 209 | $('modalbg').show(); |
|
210 | 210 | |
|
211 | 211 | var pageWidth = document.viewport.getWidth(); |
|
212 | el.setStyle({'width': width}); | |
|
212 | if (width) { | |
|
213 | el.setStyle({'width': width}); | |
|
214 | } | |
|
213 | 215 | el.setStyle({'left': (((pageWidth - el.getWidth())/2 *100) / pageWidth) + '%'}); |
|
214 | 216 | el.addClassName('modal'); |
|
215 | 217 | el.show(); |
General Comments 0
You need to be logged in to leave comments.
Login now