clipbucket/upload/admin_area/styles/cbv3/layout/amplify.requests.html

15 lines
363 B
HTML
Raw Normal View History

<script>
var ajaxURL = baseurl+'/admin_area/ajax';
amplify.request.define( "update-sidebar", "ajax", {
url: ajaxURL+"/widgets.php",
type: "POST",
decoder: function( data, status, xhr, success, error ) {
if ( status === "success" ) {
success( data );
} else {
error( data );
}
}
})
</script>