/rolesView.jsp Secret
Created
November 26, 2014 10:20
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
<script type="text/javascript"> | |
Liferay.provide( | |
window, | |
'<portlet:namespace />exportRoles', | |
function() { | |
document.<portlet:namespace />fm.<portlet:namespace />addCommIds.value = Liferay.Util.listCheckedExcept(document.<portlet:namespace />fm1, "<portlet:namespace />allRowIds"); | |
if(document.<portlet:namespace />fm.<portlet:namespace />addCommIds.value.length) | |
{ | |
document.<portlet:namespace />fm.method = "post"; | |
submitForm(document.<portlet:namespace />fm, | |
"<portlet:actionURL> <portlet:param name="struts_action" value="/roles_admin/export_role" /></portlet:actionURL>&etag=0&strip=0&compress=0", false); | |
}else { | |
alert("No rows selected."); | |
} | |
}, | |
['liferay-util-list-fields'] | |
); | |
Liferay.provide( | |
window, | |
'<portlet:namespace />importRoles', | |
function() { | |
if(document.<portlet:namespace />fm.importText.value==null || document.<portlet:namespace />fm.importText.value=='') | |
{ | |
alert('Please select a valid file'); | |
return false; | |
} | |
else if (confirm('<%= UnicodeLanguageUtil.get(pageContext, "are-you-sure-you-want-to-upload-file") %>')) { | |
submitForm(document.<portlet:namespace />fm, | |
"<portlet:actionURL> <portlet:param name="struts_action" value="/roles_admin/import_role" /></portlet:actionURL>&etag=0&strip=0&compress=0", false); | |
} | |
}, | |
['liferay-util-list-fields'] | |
); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment