andre преди 5 месеца
родител
ревизия
e7ee0733d7
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      app/UI/Client/Templates/assets/js/setting/index.js

+ 2 - 0
app/UI/Client/Templates/assets/js/setting/index.js

@@ -47,6 +47,7 @@ mgEventHandler.on('ModalLoaded', null,function(){
         document.execCommand("copy");
         tempTextarea.remove();
         $(this).val('Wert in die Zwischenablage kopiert');
+        $(this).css("background-color","red");
         setTimeout(restoreVal, 1000, [this, textToCopy]);
     });
 });
@@ -59,4 +60,5 @@ function inArray(needle, haystack) {
 }
 function restoreVal([element,value]) {
     $(element).val(value);
+    $(this).css("background-color","");
 }