Created
July 10, 2013 09:35
-
-
Save olafk/5964900 to your computer and use it in GitHub Desktop.
indicate drag/drop targets on a liferay page when a portlet is dragged
This file contains hidden or 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
Liferay.on('initLayout', function(event) { | |
Liferay.once(function() { | |
Liferay.Layout.on([ 'drag:end', 'drag:start' ], function(event) { | |
console.log('event type', event.type, event); | |
AUI().one("#main-content").toggleClass('dragging', event.type == 'drag:start'); | |
}); | |
}, Liferay.Layout, 'bindDragDropListeners'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment