diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 14:55:03 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-06 14:55:03 -0700 |
| commit | 794a7a5abf38ed828329cb0023df938479e90901 (patch) | |
| tree | b11b63813e9b1231b059a8ee14f48a92026dbb12 /modules/organize/views | |
| parent | 7ed15ea481565b1364573a814c0529adaf9f2eb7 (diff) | |
Leverage the gallery.dialog/js functionality in order to reduce duplicate code
Diffstat (limited to 'modules/organize/views')
| -rw-r--r-- | modules/organize/views/organize_dialog.html.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php index 4f10297e..11ce0a37 100644 --- a/modules/organize/views/organize_dialog.html.php +++ b/modules/organize/views/organize_dialog.html.php @@ -38,3 +38,13 @@ </div> </div> +<script type="text/javascript"> + setTimeout(function() { + // Resize with 50 pixels padding all around + var size = $.getViewportSize(); + $("#gDialog").dialog("option", "height", size.height() - 100) + .dialog("option", "width", size.width() - 100) + .dialog("option", "position", "center"); + $.organize.init(); + }, 0); +</script>
\ No newline at end of file |
