Skip to content

Instantly share code, notes, and snippets.

@farmerbradllc
Created August 11, 2011 16:53
Show Gist options
  • Save farmerbradllc/1140162 to your computer and use it in GitHub Desktop.
Save farmerbradllc/1140162 to your computer and use it in GitHub Desktop.
Change Default Drop Zone For Custom Layout
AUI().ready(
function(A) {
var CustomLayout = A.one('LAYOUT_CLASS_NAME');
if(CustomLayout){
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