merge print options into active file area. always show ams but disable when absent
This commit is contained in:
parent
1b9f67e30c
commit
b402fa9324
2 changed files with 43 additions and 43 deletions
|
|
@ -69,6 +69,13 @@ gapp.register("kiri.ui", [], (root, exports) => {
|
|||
prompt,
|
||||
alert,
|
||||
onBlur,
|
||||
setEnabled(el, bool) {
|
||||
if (bool) {
|
||||
el.removeAttribute('disabled');
|
||||
} else {
|
||||
el.setAttribute('disabled','');
|
||||
}
|
||||
},
|
||||
setVisible(el, bool) {
|
||||
kiri.ui.setClass(el, 'hide', !bool);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue