andre 6 місяців тому
батько
коміт
400fe0b3c3
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      app/UI/Client/Templates/assets/js/setting/index.js

+ 4 - 1
app/UI/Client/Templates/assets/js/setting/index.js

@@ -46,7 +46,7 @@ mgEventHandler.on('ModalLoaded', null,function(){
         tempTextarea.val(textToCopy).select();
         document.execCommand("copy");
         tempTextarea.remove();
-        setInterval($(this).val('Wert in die Zwischenablage kopiert!'), 1000);
+        setInterval(tooltip($(this)), 1000);
     });
 });
 function inArray(needle, haystack) {
@@ -56,3 +56,6 @@ function inArray(needle, haystack) {
     }
     return false;
 }
+function tooltip($element) {
+    element.val('Wert in die Zwischenablage kopiert!');
+}