src/pyams_skin/resources/js/myams.js
changeset 395 5d5e664485ec
parent 394 a1bfb6aa061a
child 404 98a41785b2db
--- a/src/pyams_skin/resources/js/myams.js	Wed Sep 05 10:56:23 2018 +0200
+++ b/src/pyams_skin/resources/js/myams.js	Wed Sep 05 15:40:50 2018 +0200
@@ -3879,7 +3879,7 @@
 														   var input = $(this);
 														   var data = input.data();
 														   var dataOptions = {
-															   position: data.amsColorpickerPosition || input.closest('label.input').data('ams-colorpicker-position') || 'bottom left'
+															   position: data.amsColorpickerPosition || input.closest('.input').data('ams-colorpicker-position') || 'bottom left'
 														   };
 														   var settings = $.extend({}, dataOptions, data.amsColorpickerOptions);
 														   settings = ams.executeFunctionByName(data.amsColorpickerInitCallback, input, settings) || settings;
@@ -5343,7 +5343,7 @@
 			if (!widget.exists()) {
 				widget = $('[name="' + changes.widget_name + ':list"]', target);
 			}
-			var label = widget.parents('label.input').last();
+			var label = widget.parents('.input').last();
 			label.html(changes.content);
 			MyAMS.initContent(label);
 			return label;