Last active
September 1, 2016 15:18
-
-
Save slemarchand/43f14dd4da8be005664ac36cc25f8116 to your computer and use it in GitHub Desktop.
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
var portletId = '15'; | |
var authToken = Liferay.authToken; | |
var url = '/en_US/group/control_panel/manage?p_auth=' + authToken + '&p_p_id=137&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&refererPlid=565250&_137_struts_action=%2Fadmin_server%2Fedit_server'; | |
var data = '_137_formDate=1472741233467&_137_cmd=reindex&_137_tabs1=server&_137_tabs2=&_137_tabs3=&_137_redirect=&_137_portletId=' + portletId + '&_137_tabs2TabsScroll=' | |
var httpRequest = new XMLHttpRequest() | |
httpRequest.open('POST', url, true); | |
httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
httpRequest.send(data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment