portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smi...@apache.org
Subject svn commit: r588402 [1/3] - in /portals/jetspeed-2/branches/JETSPEED-2.1.3/src/webapp/javascript/jetspeed/desktop: core.js core.src.js
Date Fri, 26 Oct 2007 00:00:33 GMT
Author: smilek
Date: Thu Oct 25 17:00:32 2007
New Revision: 588402

URL: http://svn.apache.org/viewvc?rev=588402&view=rev
changed jetspeed.om.Portlet.submitWinState() to prevent calls to ajax api (move/moveabs) unless
user has edit page action privilege

added jetspeed.om.Page.columnEmptyCheck(), which sets height of a column to 1px when it is
empty - column height is set back to auto when not empty; this prevents sibling columns to
the right from shifting left and taking the place of the empty column (previously used min-height
40px, which worked in mozilla but not IE)

added script annotation functions - scripts included in portlets are searched for calls to
addEventListener, attachEvent, document.write and (document|window).location= statements.
When such a statement is found, one of these new functions is wrapped around the original
statement. This allows us to:
  1) prevent addition of event listeners for onload/DOMContentLoaded/domready - this is necessary
because onload has already occurred when we load portlet content (i.e. the onload event will
not fire again) - instead we call the listener function directly
  2) attempt to handle document.write. since onload has occurred, a document.write call will
replace the entire document
  3) prevent setting (window|document).location to an action or render url
  for more details see the individual functions:

  also, the script annotation code is in jetspeed.widget.PortletWindow._fixScripts()

added jetspeed.addDummyScriptToHead() (and associated utility function jetspeed.containsElement())
for purposes of adding script nodes with src attribute to head element for benefit of ajax
toolkits which search script nodes in head to determine if a library has been loaded (e.g.

added jetspeed.ui.swfobject, which is a modified/condensed version of the SWFObject library
(http://code.google.com/p/swfobject) - the library appears here due to problems with loading
it for each portlet that needs it

in jetspeed.om.Page.loadPostRender(), make deferred call to new function jetspeed.url.loadingIndicatorStepPreload()
so that loading indicator step images are preloaded after all other page content is finished


To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message