andre 5 mesi fa
parent
commit
f6ee22b289
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      app/UI/Client/Templates/assets/js/setting/index.js

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

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