Browse Source

new info form

andre 5 months ago
parent
commit
56840f17c2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/UI/Client/Templates/assets/js/setting/index.js

+ 3 - 3
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();
-        setTimeout(tooltip, 1000, this);
+        setTimeout(tooltip, 1000, [this, 'blubb']);
     });
 });
 function inArray(needle, haystack) {
@@ -56,6 +56,6 @@ function inArray(needle, haystack) {
     }
     return false;
 }
-function tooltip(element) {
-    $(element).val('Wert in die Zwischenablage kopiert!');
+function tooltip([element,value]) {
+    $(element).val(value);
 }