diff -r e93775177b43 -r 95bee9c0ae3f src/pyams_portal/resources/js/portal.js --- a/src/pyams_portal/resources/js/portal.js Tue Jun 26 08:47:39 2018 +0200 +++ b/src/pyams_portal/resources/js/portal.js Tue Jun 26 12:11:24 2018 +0200 @@ -107,8 +107,10 @@ var rows = $('.rows', '#portal_config'); $('
').addClass('row context-menu') .attr('data-ams-row-id', row_id) - .append($('').addClass('row_id label label-success pull-right') - .text(row_id)) + .append($('').addClass('row_id label label-success pull-left') + .text(row_id)) + .append($('').addClass('row_id label label-success pull-right') + .text(row_id)) .append($('
').addClass('slots') .sortable({ placeholder: 'slot-highlight', @@ -145,8 +147,10 @@ .addClass('row context-menu') .attr('data-ams-row-id', row_id) .empty() - .append($('').addClass('row_id label label-success pull-right') - .text(row_id)) + .append($('').addClass('row_id label label-success pull-left') + .text(row_id)) + .append($('').addClass('row_id label label-success pull-right') + .text(row_id)) .append($('
').addClass('slots') .sortable({ placeholder: 'slot-highlight', @@ -186,7 +190,7 @@ if (result.status === 'success') { $('.row', config).each(function (index) { $(this).attr('data-ams-row-id', index); - $('span.row_id', $(this)).text(index); + $('.row_id', $(this)).text(index); }); } }); @@ -212,7 +216,7 @@ $('.row', '#portal_config').each(function (index) { $(this).removeData() .attr('data-ams-row-id', index); - $('span.row_id', $(this)).text(index); + $('.row_id', $(this)).text(index); }); } });