Created
August 11, 2011 17:10
-
-
Save randombrad/1140201 to your computer and use it in GitHub Desktop.
Change Default Drop Zone For Entire Theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUI().ready( | |
function(A) { | |
A.Do.before(function(option) { | |
if (!option.placeHolder) { | |
option.placeHolder = A.Node.create('<div class="loading-animation"></div>'); | |
} | |
option.placeHolder.prependTo('TARGETED-COLUMN-ID'); | |
}, Liferay.Portlet, 'add', Liferay.Portlet); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great. Thanks for the snippet!