User:BZPN/MassRollback2.js: Difference between revisions

From Test Wiki
Content deleted Content added
BZPN (talk | contribs)
No edit summary
BZPN (talk | contribs)
No edit summary
Tag: Tag test
Line 133: Line 133:
const $toggleButton = $(`
const $toggleButton = $(`
<button id="mass-rollback-toggle" style="padding: 5px 10px; margin-bottom: 10px; background-color: #007bff; color: #fff; border: none; border-radius: 3px; cursor: pointer;">
<button id="mass-rollback-toggle" style="padding: 5px 10px; margin-bottom: 10px; background-color: #007bff; color: #fff; border: none; border-radius: 3px; cursor: pointer;">
Show MassRollback
Show/Hide MassRollback
</button>
</button>
`);
`);
Line 141: Line 141:
const btn = $(this);
const btn = $(this);
btn.text(btn.text() === 'Open MassRollback' ? 'Show MassRollback' : 'Hide MassRollback');
btn.text(btn.text() === 'Open MassRollback' ? 'Show/Hide MassRollback' : 'Show/Hide MassRollback');
});
});