mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:25:55 +00:00
Merge pull request 'fix-mysql-support' (#10) from klatch/tt-rss:fix-mysql-support into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/10
This commit is contained in:
@@ -52,8 +52,9 @@ const App = {
|
||||
return this.button_tag(value, "", {...{onclick: "App.dialogOf(this).hide()"}, ...attributes});
|
||||
},
|
||||
checkbox_tag: function(name, checked = false, value = "", attributes = {}, id = "") {
|
||||
// checked !== '0' prevents mysql "boolean" false to be implicitly cast as true
|
||||
return `<input dojoType="dijit.form.CheckBox" type="checkbox" name="${App.escapeHtml(name)}"
|
||||
${checked ? "checked" : ""}
|
||||
${checked !== '0' && checked ? "checked" : ""}
|
||||
${value ? `value="${App.escapeHtml(value)}"` : ""}
|
||||
${this.attributes_to_string(attributes)} id="${App.escapeHtml(id)}">`
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user