Updated Refresh table
This commit is contained in:
parent
e7a98ef0aa
commit
0b3d051096
|
@ -3,18 +3,12 @@ package org.gcube.portlets.admin.systemservicedefinition;
|
||||||
import javax.portlet.ActionRequest;
|
import javax.portlet.ActionRequest;
|
||||||
import javax.portlet.RenderRequest;
|
import javax.portlet.RenderRequest;
|
||||||
import javax.portlet.ResourceRequest;
|
import javax.portlet.ResourceRequest;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
|
||||||
|
|
||||||
import org.gcube.common.authorization.library.provider.AccessTokenProvider;
|
|
||||||
import org.gcube.common.portal.PortalContext;
|
import org.gcube.common.portal.PortalContext;
|
||||||
import org.gcube.oidc.rest.JWTToken;
|
|
||||||
import org.gcube.portal.oidc.lr62.JWTTokenUtil;
|
|
||||||
import org.gcube.portal.oidc.lr62.OIDCUmaUtil;
|
|
||||||
import org.gcube.portlets.admin.systemservicedefinition.util.UserCredentials;
|
import org.gcube.portlets.admin.systemservicedefinition.util.UserCredentials;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
|
||||||
import com.liferay.portal.model.User;
|
import com.liferay.portal.model.User;
|
||||||
import com.liferay.portal.util.PortalUtil;
|
import com.liferay.portal.util.PortalUtil;
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,11 @@ function deleteSSD(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function refreshSSD(){
|
||||||
|
var table = $('#definitionsTable').DataTable();
|
||||||
|
table.ajax.reload();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$.fn.dataTable.ext.buttons.createSSD = {
|
$.fn.dataTable.ext.buttons.createSSD = {
|
||||||
text: '<span class="material-icons">add_circle_outline</span>',
|
text: '<span class="material-icons">add_circle_outline</span>',
|
||||||
|
@ -167,7 +172,7 @@ $.fn.dataTable.ext.buttons.deleteSSD = {
|
||||||
$.fn.dataTable.ext.buttons.refreshSSD = {
|
$.fn.dataTable.ext.buttons.refreshSSD = {
|
||||||
text: '<span class="material-icons">refresh</span>',
|
text: '<span class="material-icons">refresh</span>',
|
||||||
action: function ( e, dt, node, config ) {
|
action: function ( e, dt, node, config ) {
|
||||||
table.ajax.reload();
|
refreshSSD();
|
||||||
},
|
},
|
||||||
attr: {
|
attr: {
|
||||||
title: 'Refresh',
|
title: 'Refresh',
|
||||||
|
|
Loading…
Reference in New Issue