Add merchandise, fix articletosell with src for images
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
@push('js')
|
||||
|
||||
<script>
|
||||
function openModal(title, form_id, url_open, url_save, callback, size, no_confirm, buttons) {
|
||||
function openModal(title, form_id, url_open, url_save, callback, size, no_confirm, buttons, callback_after_loaded) {
|
||||
var status = 0;
|
||||
var dialog = bootbox.dialog({
|
||||
title: title,
|
||||
@@ -18,7 +18,11 @@
|
||||
|
||||
dialog.init(function() {
|
||||
$.get(url_open, function(data) {
|
||||
console.log("OpenModal init");
|
||||
dialog.find('.bootbox-body').html(data);
|
||||
if (callback_after_loaded) {
|
||||
eval(callback_after_loaded);
|
||||
}
|
||||
// if ( typeOf(url_save) !== 'undefined') {
|
||||
handlePostModal(form_id,url_save, callback);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user