|
|
|
@ -33,7 +33,7 @@ define('settings/sorted-list', ['benchpress', 'jqueryui'], function (benchpress)
|
|
|
|
|
var modal = bootbox.confirm(formHtml, function (save) {
|
|
|
|
|
if (save) {
|
|
|
|
|
var itemUUID = utils.generateUUID();
|
|
|
|
|
var form = $('<form class="" data-sorted-list-uuid="' + itemUUID + '" data-sorted-list-object="' + key + '" />');
|
|
|
|
|
var form = $('<form class="" data-sorted-list-uuid="' + itemUUID + '" data-sorted-list-object="' + key + '"></form>');
|
|
|
|
|
form.append(modal.find('form').children());
|
|
|
|
|
|
|
|
|
|
$('#content').append(form.hide());
|
|
|
|
@ -83,7 +83,7 @@ define('settings/sorted-list', ['benchpress', 'jqueryui'], function (benchpress)
|
|
|
|
|
|
|
|
|
|
var modal = bootbox.confirm(form, function (save) {
|
|
|
|
|
if (save) {
|
|
|
|
|
var form = $('<form class="" data-sorted-list-uuid="' + itemUUID + '" data-sorted-list-object="' + key + '" />');
|
|
|
|
|
var form = $('<form class="" data-sorted-list-uuid="' + itemUUID + '" data-sorted-list-object="' + key + '"></form>');
|
|
|
|
|
form.append(modal.find('form').children());
|
|
|
|
|
|
|
|
|
|
$('#content').find('[data-sorted-list-uuid="' + itemUUID + '"][data-sorted-list-object="' + key + '"]').remove();
|
|
|
|
|