diff options
author | Andrew Dolgov <[email protected]> | 2021-02-18 11:54:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-18 11:54:22 +0300 |
commit | 1adb9bb6b643736706b746629b849df9cdf45e50 (patch) | |
tree | 4361f08284d0667a075df004e3c76b2aade51e06 /js/App.js | |
parent | b16abc157ee584f4be80a537ee24ec9e5ff25496 (diff) |
profiles: use client dialog; move related methods to pref-prefs
Diffstat (limited to 'js/App.js')
-rw-r--r-- | js/App.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -42,6 +42,12 @@ const App = { cancel_dialog_tag: function(value, attributes = {}) { return this.button_tag(value, "", {...{onclick: "App.dialogOf(this).hide()"}, ...attributes}); }, + checkbox_tag: function(name, checked = false, value = "", attributes = {}, id = "") { + return `<input dojoType="dijit.form.CheckBox" type="checkbox" name="${App.escapeHtml(name)}" + ${checked ? "checked" : ""} + ${value ? `value="${App.escapeHtml(value)}"` : ""} + ${this.attributes_to_string(attributes)} id="${App.escapeHtml(id)}">` + }, select_tag: function(name, value, values = [], attributes = {}, id = "") { return ` <select name="${name}" dojoType="fox.form.Select" id="${App.escapeHtml(id)}" ${this.attributes_to_string(attributes)}> |