Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  
// License: GPL
 
// License: GPL
  −
function clipboard(copyText) {
  −
  /* Get the text field */
  −
  −
  /* Select the text field */
  −
  copyText.select();
  −
  copyText.setSelectionRange(0, 99999); /*For mobile devices*/
  −
  −
  /* Copy the text inside the text field */
  −
  document.execCommand("copy");
  −
}
  −
  −
        Line 46: Line 33:  
    mw.notify( $(data.expandtemplates["*"]) , { autoHide: false } );
 
    mw.notify( $(data.expandtemplates["*"]) , { autoHide: false } );
 
} );
 
} );
                                mw.notify($('<button onclick="clipboard()">Copy to clipboard the text to send</button>'));
   
}
 
}
 
}
 
}

Navigation menu