src/pyams_portal/resources/js/portal.js
changeset 140 95bee9c0ae3f
parent 130 26038059e74d
child 163 9e12eb044abf
--- 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');
 						$('<div></div>').addClass('row context-menu')
 										.attr('data-ams-row-id', row_id)
-										.append($('<span></span>').addClass('row_id label label-success pull-right')
-																  .text(row_id))
+										.append($('<strong></strong>').addClass('row_id label label-success pull-left')
+																	  .text(row_id))
+										.append($('<strong></strong>').addClass('row_id label label-success pull-right')
+																	  .text(row_id))
 										.append($('<div></div>').addClass('slots')
 																.sortable({
 																	placeholder: 'slot-highlight',
@@ -145,8 +147,10 @@
 								.addClass('row context-menu')
 								.attr('data-ams-row-id', row_id)
 								.empty()
-								.append($('<span></span>').addClass('row_id label label-success pull-right')
-														  .text(row_id))
+								.append($('<strong></strong>').addClass('row_id label label-success pull-left')
+															  .text(row_id))
+								.append($('<strong></strong>').addClass('row_id label label-success pull-right')
+															  .text(row_id))
 								.append($('<div></div>').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);
 													});
 												}
 											});