You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by rw...@apache.org on 2006/04/25 20:11:08 UTC
svn commit: r396945 -
/portals/jetspeed-2/trunk/src/webapp/javascript/desktop/core/compatibility.js
Author: rwatler
Date: Tue Apr 25 11:11:04 2006
New Revision: 396945
URL: http://svn.apache.org/viewcvs?rev=396945&view=rev
Log:
add for desktop: contributed by Steve Milek
Added:
portals/jetspeed-2/trunk/src/webapp/javascript/desktop/core/compatibility.js (with props)
Added: portals/jetspeed-2/trunk/src/webapp/javascript/desktop/core/compatibility.js
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/javascript/desktop/core/compatibility.js?rev=396945&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/javascript/desktop/core/compatibility.js (added)
+++ portals/jetspeed-2/trunk/src/webapp/javascript/desktop/core/compatibility.js Tue Apr 25 11:11:04 2006
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2000-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// jetspeed javascript to help support portlets in both /portal and /desktop
+
+
+dojo.provide("jetspeed.desktop.compatibility");
+
+// ... jetspeed base objects
+if ( ! window.jetspeed )
+ jetspeed = {} ;
+
+
+jetspeed.addOnLoad = function( adviceFnc )
+{
+ dojo.debug( "jetspeed.addOnLoad" );
+ if ( dojo.hostenv.post_load_ )
+ {
+ adviceFnc.call( this );
+ }
+ else
+ {
+ dojo.event.connect( dojo, "loaded", adviceFnc );
+ }
+};
Propchange: portals/jetspeed-2/trunk/src/webapp/javascript/desktop/core/compatibility.js
------------------------------------------------------------------------------
svn:executable = *
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org