batch editor: comment out getChildByName

This commit is contained in:
Andrew Dolgov 2021-02-21 16:06:46 +03:00
parent 521d0b65c7
commit 2ab215daca
1 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b
try { try {
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
title: __("Edit Multiple Feeds"), title: __("Edit Multiple Feeds"),
getChildByName: function (name) { /*getChildByName: function (name) {
let rv = null; let rv = null;
this.getChildren().forEach( this.getChildren().forEach(
function (child) { function (child) {
@ -311,7 +311,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b
} }
}); });
return rv; return rv;
}, },*/
toggleField: function (checkbox) { toggleField: function (checkbox) {
const name = checkbox.attr("data-control-for"); const name = checkbox.attr("data-control-for");
const target = dijit.getEnclosingWidget(dialog.domNode.querySelector(`input[name="${name}"]`)); const target = dijit.getEnclosingWidget(dialog.domNode.querySelector(`input[name="${name}"]`));