summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-10-10 18:07:15 +0000
committerwjames5 <will@tekimaki.com>2007-10-10 18:07:15 +0000
commit52b37603d53e9c78ed796bb9a2f8bd1f80893715 (patch)
tree7a4dd119987664c6ba33e99e34505497a15e216f
parent440761e8a0a41798de2c7c88c05d53858db4435e (diff)
downloadfisheye-52b37603d53e9c78ed796bb9a2f8bd1f80893715.tar.gz
fisheye-52b37603d53e9c78ed796bb9a2f8bd1f80893715.tar.bz2
fisheye-52b37603d53e9c78ed796bb9a2f8bd1f80893715.zip
migrate core ajax services off prototype to mochikit
-rw-r--r--edit.php3
-rw-r--r--image_order.php4
-rw-r--r--templates/edit_gallery.tpl5
-rw-r--r--templates/image_order.tpl2
4 files changed, 7 insertions, 7 deletions
diff --git a/edit.php b/edit.php
index 462a9c0..036a5b0 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.24 2007/10/10 12:10:20 nickpalmer Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.25 2007/10/10 18:07:15 wjames5 Exp $
* @package fisheye
* @subpackage functions
*/
@@ -93,7 +93,6 @@ $errors = (!empty($gContent->mErrors) ? $gContent->mErrors : array());
$gBitSmarty->assign_by_ref('errors', $errors);
$gBitSystem->setOnloadScript( 'updateGalleryPagination();' );
-$gBitThemes->loadAjax( 'prototype' );
$gallery = $gContent->getParentGalleries();
$gBitSmarty->assign_by_ref( 'parentGalleries', $gallery );
diff --git a/image_order.php b/image_order.php
index c6b71f6..fee4a48 100644
--- a/image_order.php
+++ b/image_order.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/image_order.php,v 1.27 2007/10/10 12:10:20 nickpalmer Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/image_order.php,v 1.28 2007/10/10 18:07:15 wjames5 Exp $
* @package fisheye
* @subpackage functions
*/
@@ -217,6 +217,6 @@ $gContent->loadImages();
$gBitSmarty->assign_by_ref('formfeedback', $feedback);
-$gBitThemes->loadAjax( 'prototype' );
+$gBitThemes->loadAjax( 'mochikit' );
$gBitSystem->display( 'bitpackage:fisheye/image_order.tpl', tra( 'Edit Gallery Images' ).': '.$gContent->getTitle() );
?>
diff --git a/templates/edit_gallery.tpl b/templates/edit_gallery.tpl
index 038ee3f..12b8e95 100644
--- a/templates/edit_gallery.tpl
+++ b/templates/edit_gallery.tpl
@@ -4,8 +4,9 @@ function updateGalleryPagination() {
$('fixed_grid-pagination').style.display = 'none';
$('auto_flow-pagination').style.display = 'none';
$('position_number-pagination').style.display = 'none';
- var select;
- select = $F('gallery-pagination');
+ var input = $('editGalleryForm').gallery_pagination;
+ var i = input.selectedIndex;
+ var select = input.options[i].value;
$(select+'-pagination').style.display = 'block';
}
//]]></script>
diff --git a/templates/image_order.tpl b/templates/image_order.tpl
index 476184d..43c26b9 100644
--- a/templates/image_order.tpl
+++ b/templates/image_order.tpl
@@ -48,7 +48,7 @@
<strong>{tr}Uploaded{/tr}</strong>: {$galItem->mInfo.created|bit_short_datetime}<br />
<strong>{tr}File name{/tr}</strong>: {$galItem->mInfo.image_file.filename} <br />
{if $galItem->mInfo.user_id == $gBitUser->mUserId || $gBitUser->isAdmin()}
- <strong>{tr}Edit Image{/tr}</strong>: <a href="javascript:ajax_updater( 'imgedit', '{$smarty.const.FISHEYE_PKG_URL}edit_image.php', 'ajax=true&amp;content_id={$galItem->mInfo.content_id}&amp;gallery_id={$gContent->mGalleryId}' );">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Details"}</a>
+ <strong>{tr}Edit Image{/tr}</strong>: <a href="javascript:void(0);" onclick="BitAjax.updater( 'imgedit', '{$smarty.const.FISHEYE_PKG_URL}edit_image.php', 'ajax=true&amp;content_id={$galItem->mInfo.content_id}&amp;gallery_id={$gContent->mGalleryId}' );">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Details"}</a>
<noscript><div><a href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?content_id={$galItem->mInfo.content_id}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Image"}</a></div></noscript>
{* jspopup href="`$smarty.const.FISHEYE_PKG_URL`edit_image.php?content_id=`$galItem->mInfo.content_id`" title="edit image" *}
{* <a target="_new" href="{$smarty.const.FISHEYE_PKG_URL}edit_image.php?content_id={$galItem->mInfo.content_id}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="Edit Image"}</a> *}