This commit is contained in:
psychobunny
2016-02-23 16:06:02 -05:00
parent efb6a9fe7e
commit e069150625
5 changed files with 170 additions and 92 deletions

View File

@@ -116,7 +116,12 @@ define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
fileSize: 0,
showHelp: uploadBtn.attr('data-help') ? uploadBtn.attr('data-help') === 1 : undefined
}, function(image) {
$('#' + uploadBtn.attr('data-target')).val(image);
// need to move these into template, ex data-callback
if (ajaxify.currentPage === 'admin/general/sounds') {
ajaxify.refresh();
} else {
$('#' + uploadBtn.attr('data-target')).val(image);
}
});
});
});