You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-commits@incubator.apache.org by su...@apache.org on 2011/02/20 04:32:32 UTC
svn commit: r1072492 -
/incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js
Author: suho
Date: Sun Feb 20 04:32:31 2011
New Revision: 1072492
URL: http://svn.apache.org/viewvc?rev=1072492&view=rev
Log:
PHOTARK-67 Applying patch from Kishanthan Thangarajah
Modified:
incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js
Modified: incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js?rev=1072492&r1=1072491&r2=1072492&view=diff
==============================================================================
--- incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js (original)
+++ incubator/photark/trunk/photark-ui/src/main/webapp/js/gallery.js Sun Feb 20 04:32:31 2011
@@ -96,8 +96,16 @@ function initServices(){
function initGallery() {
try {
+ //following if condition is for a script error that arises in IE 7/8/9
+ if (SECURITY_TOKEN = 'undefined') {
+ dojo.require("dojo._base.xhr");
+ dojo.require("dojo.rpc.JsonService");
+ getJSONAccessList();
+ populateUserInfo();
+ initServices();
+ }
gallery.getAlbumsToUser(SECURITY_TOKEN).addCallback(gallery_getAlbumsResponse);
- remoteGallery.getAlbumsToUser(SECURITY_TOKEN,"remote").addCallback(remote_gallery_getAlbumsResponse);
+ remoteGallery.getAlbumsToUser(SECURITY_TOKEN, "remote").addCallback(remote_gallery_getAlbumsResponse);
} catch(exception) {