mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
LSdefault / copyable helper: add copyable-no-btn helper class
This commit is contained in:
parent
d387052068
commit
140b000877
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ var LSdefault = new Class({
|
|||
this.initializeLang();
|
||||
|
||||
document.getElements('.copyable').each(function(el) {
|
||||
if (el.hasClass('copyable-no-btn')) {
|
||||
el.addEvent('click', this.onCopyBtnClick.bind(this, {btn: null, element: el}));
|
||||
el.setStyle('cursor', 'copy');
|
||||
this.addHelpInfo(el, 'LSdefault', 'copy_to_clipboard');
|
||||
return;
|
||||
}
|
||||
var btn = new Element('img');
|
||||
btn.setProperties({
|
||||
src: this.imagePath('copy')
|
||||
|
|
Loading…
Reference in a new issue