Browse Source

Correctif micro bugs

idleman 4 years ago
parent
commit
370d7bcce0
2 changed files with 5 additions and 2 deletions
  1. 3 0
      plugin/part/css/main.css
  2. 2 2
      plugin/part/js/main.js

+ 3 - 0
plugin/part/css/main.css

@@ -33,6 +33,9 @@
 	position: relative;
 }
 
+#parts li.edition .part{
+	opacity:0.5;
+}
 
 
 #sketch-workspace .part .part-image{

+ 2 - 2
plugin/part/js/main.js

@@ -107,7 +107,7 @@ function part_part_save(element){
 		picture : li.find('.part-image').attr('data-stream')
 	}
 	$.action(data,function(r){
-		
+		li.removeClass('edition');
 		li.attr('data-part',r.part);
 		li.attr('data-id',r.id)
 		$.message('success','Enregistré');
@@ -133,7 +133,7 @@ function part_part_add(){
 		url : 'http://ebay.com'
 	}
 	var item = $(Mustache.render(tpl,data));
-	item.removeClass('hidden');
+	item.removeClass('hidden').addClass('edition');
 	item.css({
 		transform : 'scale(0)',
 		opacity : 0,