Untitled
unknown
plain_text
a year ago
1.5 kB
6
Indexable
const classAleart= response.alert['class']; const titleAleart= response.alert['title']; const subtitleAleart= response.alert['subtitle']; const bodyAleart= response.alert['body']; if (response.forceReload == 'true') { // Backwards compatible reload of fixed crud-datatable-pjax $.pjax.reload({container: '#crud-datatable-pjax'}); } else if (response.forceReload.indexOf(',') -1) { // reload multiple pjax with comma separator var pjaxContainers = response.forceReload.split(','); $.each(pjaxContainers, function(index, value) { $.pjax.reload({container: value}); $.pjax.xhr = null; }); } else { $.pjax.reload({container: response.forceReload}); } $(document).Toasts('create', { class: classAleart, title: titleAleart, subtitle: subtitleAleart, body: bodyAleart }) //controller return ['forceClose'=true,'forceReload'='#crud-datatable-pjax','alert'=[ 'class'='bg-danger', //bg-info ,bg-success 'title'='Informasi', 'subtitle'='App Simadu', 'body'='Berhasil dihapus' ]];
Editor is loading...
Leave a Comment