Load preview images with GET, and fix bad parameter formatting
authorChuck Hagenbuch <chuck@horde.org>
Sun, 22 Aug 2010 03:40:21 +0000 (23:40 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 22 Aug 2010 03:40:21 +0000 (23:40 -0400)
ansel/lib/Block/my_galleries.php
ansel/lib/Block/recently_added.php

index aa662d7..447debf 100644 (file)
@@ -78,7 +78,7 @@ function previewImageMg(e, image_id)
 {
     $('ansel_preview').style.left = Event.pointerX(e) + 'px';
     $('ansel_preview').style.top = Event.pointerY(e) + 'px';
-    new Ajax.Updater({success: 'ansel_preview'}, '$preview_url', {method: 'post', parameters: '?image=' + image_id, onsuccess: $('ansel_preview').show()});
+    new Ajax.Updater({success: 'ansel_preview'}, '$preview_url', {method: 'get', parameters: 'image=' + image_id, onsuccess: $('ansel_preview').show()});
 }
 </script>
 <table class="linedRow" cellspacing="0" style="width:100%">
@@ -107,5 +107,4 @@ HEADER;
 
         return $html;
     }
-
 }
index 8d49123..83bfccb 100644 (file)
@@ -115,9 +115,9 @@ function previewImage(e, image_id) {
     $('ansel_preview').style.top = Event.pointerY(e) + 'px';
     new Ajax.Updater({success:'ansel_preview'},
                      '$preview_url',
-                     {method: 'post',
-                      parameters:'?image=' + image_id,
-                      onsuccess:$('ansel_preview').show()});
+                     {method: 'get',
+                      parameters: 'image=' + image_id,
+                      onsuccess: $('ansel_preview').show()});
 }
 </script>
 <table class="linedRow" cellspacing="0" style="width:100%">