15 lines
363 B
HTML
15 lines
363 B
HTML
![]() |
<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>
|