This commit is contained in:
xhyrom 2021-12-21 16:02:14 +01:00
parent 6742c45c20
commit 0a2480a5ad
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ $('button[id=addRole]').click((e) => {
}).catch(swal.noop) }).catch(swal.noop)
}) })
$('pre[id=json].copy').click((e) => { $('pre[id=jsonPre].copy').click((e) => {
navigator.clipboard.writeText(e?.currentTarget?.textContent || e.textContent); navigator.clipboard.writeText(e?.currentTarget?.textContent || e.textContent);
Swal.fire({ Swal.fire({

View file

@ -32,7 +32,7 @@
</form> </form>
<button id='addRole'>Add Role</button> <button id='addRole'>Add Role</button>
<pre class='hljs language-json copy' id='json'><code id='json' class="code"></code></pre> <pre class='hljs language-json copy' id='jsonPre'><code id='json' class="code"></code></pre>
Put json from ^ to /setup Put json from ^ to /setup
</div> </div>
</section> </section>