Browse Source

new info form

andre 5 months ago
parent
commit
f6ee22b289
1 changed files with 3 additions and 2 deletions
  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();
         document.execCommand("copy");
         tempTextarea.remove();
-        setTimeout(tooltip, 1000, [this, 'blubb']);
+        $(this).val('Wert in die Zwischenablage kopiert');
+        setTimeout(restoreVal, 1000, [this, textToCopy]);
     });
 });
 function inArray(needle, haystack) {
@@ -56,6 +57,6 @@ function inArray(needle, haystack) {
     }
     return false;
 }
-function tooltip([element,value]) {
+function restoreVal([element,value]) {
     $(element).val(value);
 }