Skip to content

Instantly share code, notes, and snippets.

@djalmaaraujo
Created December 6, 2012 19:21
Show Gist options
  • Save djalmaaraujo/4227445 to your computer and use it in GitHub Desktop.
Save djalmaaraujo/4227445 to your computer and use it in GitHub Desktop.
A.one(document).delegate('click', function (event) {
var activeView = <portlet:namespace />scheduler.get('activeView').get('name');
var link = this;
var newURL = Liferay.Util.addParams({
p_p_id: <portlet:namespace />scheduler.get('portletNamespace'),
activeView: activeView
}, link.getAttribute('href'));
link.setAttribute('href', newURL);
event.preventDefault();
}, 'a');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment