Commit 2a7c6142 authored by JC Brand's avatar JC Brand

Use newer classes

parent 28bc3a22
...@@ -995,10 +995,10 @@ ...@@ -995,10 +995,10 @@
const last_fieldset_el = document.createElement('fieldset'); const last_fieldset_el = document.createElement('fieldset');
last_fieldset_el.insertAdjacentHTML( last_fieldset_el.insertAdjacentHTML(
'beforeend', 'beforeend',
`<input type="submit" class="pure-button button-primary" value="${__('Save')}"/>`); `<input type="submit" class="btn btn-primary" value="${__('Save')}"/>`);
last_fieldset_el.insertAdjacentHTML( last_fieldset_el.insertAdjacentHTML(
'beforeend', 'beforeend',
`<input type="button" class="pure-button button-cancel" value="${__('Cancel')}"/>`); `<input type="button" class="btn btn-secondary" value="${__('Cancel')}"/>`);
form_el.insertAdjacentElement('beforeend', last_fieldset_el); form_el.insertAdjacentElement('beforeend', last_fieldset_el);
last_fieldset_el.querySelector('input[type=button]').addEventListener('click', (ev) => { last_fieldset_el.querySelector('input[type=button]').addEventListener('click', (ev) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment