]> git.wh0rd.org Git - tt-rss.git/commitdiff
Replace deprecated dojo.place with domConstruct.place
authorAnders Kaseorg <andersk@mit.edu>
Sat, 21 Jan 2017 17:54:36 +0000 (12:54 -0500)
committerAnders Kaseorg <andersk@mit.edu>
Sat, 21 Jan 2017 18:22:13 +0000 (13:22 -0500)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
js/FeedTree.js
js/PrefFeedTree.js
js/PrefFilterTree.js
js/PrefLabelTree.js
lib/CheckBoxTree.js

index dc35619eaeeb8b809ac39c14fe7288bb49da5176..5052f38dc28db8d9f3ebab2a8bc3f703d18f72fa 100644 (file)
@@ -95,7 +95,7 @@ require(["dojo/_base/declare", "dijit/tree/ForestStoreModel"], function (declare
        });
 });
 
-require(["dojo/_base/declare", "dijit/Tree", "dijit/Menu"], function (declare) {
+require(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"], function (declare, domConstruct) {
 
        return declare("fox.FeedTree", dijit.Tree, {
                _onKeyPress: function(/* Event */ e) {
@@ -121,7 +121,7 @@ require(["dojo/_base/declare", "dijit/Tree", "dijit/Menu"], function (declare) {
                                        color: fg_color,
                                        backgroundColor: bg_color});
 
-                               dojo.place(span, tnode.iconNode, 'replace');
+                               domConstruct.place(span, tnode.iconNode, 'replace');
                        }
 
                        if (id.match("FEED:")) {
@@ -176,7 +176,7 @@ require(["dojo/_base/declare", "dijit/Tree", "dijit/Menu"], function (declare) {
                                loading = dojo.doc.createElement('img');
                                loading.className = 'loadingNode';
                                loading.src = 'images/blank_icon.gif';
-                               dojo.place(loading, tnode.labelNode, 'after');
+                               domConstruct.place(loading, tnode.labelNode, 'after');
                                tnode.loadingNode = loading;
                        }
 
@@ -204,7 +204,7 @@ require(["dojo/_base/declare", "dijit/Tree", "dijit/Menu"], function (declare) {
 
                        args.item.unread == 0 && args.item.auxcounter > 0 ? ctr.addClassName("aux") : ctr.removeClassName("aux");
 
-                       dojo.place(ctr, tnode.rowNode, 'first');
+                       domConstruct.place(ctr, tnode.rowNode, 'first');
                        tnode.counterNode = ctr;
 
                        //tnode.labelNode.innerHTML = args.label;
index c3b0d75f04bf472376d2692a80e433ad185a763c..c3a089d008ce4b81cd8827e70e91ff720226152d 100644 (file)
@@ -17,7 +17,7 @@ require(["dojo/_base/declare", "dojo/data/ItemFileWriteStore"], function (declar
 
 });
 
-require(["dojo/_base/declare", "lib/CheckBoxTree"], function (declare) {
+require(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], function (declare, domConstruct) {
 
        return declare("fox.PrefFeedTree", lib.CheckBoxTree, {
                _createTreeNode: function(args) {
@@ -32,8 +32,8 @@ require(["dojo/_base/declare", "lib/CheckBoxTree"], function (declare) {
                                param = dojo.doc.createElement('span');
                                param.className = 'feedParam';
                                param.innerHTML = args.item.param[0];
-                               //dojo.place(param, tnode.labelNode, 'after');
-                               dojo.place(param, tnode.rowNode, 'first');
+                               //domConstruct.place(param, tnode.labelNode, 'after');
+                               domConstruct.place(param, tnode.rowNode, 'first');
                        }
 
                        var id = args.item.id[0];
index 5e055646cfcebd2e3dcf888b6182034878e6fa8f..5c854cbd8a1807ff575ce48d212a5bcdf5f6b6d7 100644 (file)
@@ -19,7 +19,7 @@ require(["dojo/_base/declare", "dojo/data/ItemFileWriteStore"], function (declar
        });
 });
 
-require(["dojo/_base/declare", "lib/CheckBoxTree"], function (declare) {
+require(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], function (declare, domConstruct) {
 
        return declare("fox.PrefFilterTree", lib.CheckBoxTree, {
                _createTreeNode: function(args) {
@@ -33,14 +33,14 @@ require(["dojo/_base/declare", "lib/CheckBoxTree"], function (declare) {
                                param = dojo.doc.createElement('span');
                                param.className = (enabled != false) ? 'labelParam' : 'labelParam filterDisabled';
                                param.innerHTML = args.item.param[0];
-                               dojo.place(param, tnode.rowNode, 'first');
+                               domConstruct.place(param, tnode.rowNode, 'first');
                        }
 
                        if (rules) {
                                param = dojo.doc.createElement('span');
                                param.className = 'filterRules';
                                param.innerHTML = rules;
-                               dojo.place(param, tnode.rowNode, 'next');
+                               domConstruct.place(param, tnode.rowNode, 'next');
                        }
 
                        if (this.model.store.getValue(args.item, 'id') != 'root') {
@@ -48,7 +48,7 @@ require(["dojo/_base/declare", "lib/CheckBoxTree"], function (declare) {
                                img.src ='images/filter.png';
                                img.className = 'markedPic';
                                tnode._filterIconNode = img;
-                               dojo.place(tnode._filterIconNode, tnode.labelNode, 'before');
+                               domConstruct.place(tnode._filterIconNode, tnode.labelNode, 'before');
                        }
 
                        return tnode;
index 673fd19ad1a8527b1c319cab103148455600d234..9c43346b3354bc0c732c1c5423d3cf05fc39ea67 100644 (file)
@@ -1,4 +1,4 @@
-require(["dojo/_base/declare", "lib/CheckBoxTree", "dijit/form/DropDownButton"], function (declare) {
+require(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/form/DropDownButton"], function (declare, domConstruct) {
 
        return declare("fox.PrefLabelTree", lib.CheckBoxTree, {
                setNameById: function (id, name) {
@@ -28,7 +28,7 @@ require(["dojo/_base/declare", "lib/CheckBoxTree", "dijit/form/DropDownButton"],
 
                                tnode._labelIconNode = span;
 
-                               dojo.place(tnode._labelIconNode, tnode.labelNode, 'before');
+                               domConstruct.place(tnode._labelIconNode, tnode.labelNode, 'before');
                        }
 
                        return tnode;
index 1684c71747449cd52f17adf34482d9683fcb4036..41c74ab3bbc7f958672c02e1c5c41d9b64fe66b4 100644 (file)
@@ -338,7 +338,7 @@ require(["dojo/_base/declare", "dijit/tree/TreeStoreModel"], function (declare)
 
 });
 
-require(["dojo/_base/declare", "dijit/Tree"], function (declare) {
+require(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree"], function (declare, domConstruct) {
 
        return declare("lib._CheckBoxTreeNode", dijit._TreeNode,
                {
@@ -363,7 +363,7 @@ require(["dojo/_base/declare", "dijit/Tree"], function (declare) {
                                        //this._checkbox = dojo.doc.createElement('input');
                                        this._checkbox.type = 'checkbox';
                                        this._checkbox.attr('checked', currState);
-                                       dojo.place(this._checkbox.domNode, this.expandoNode, 'after');
+                                       domConstruct.place(this._checkbox.domNode, this.expandoNode, 'after');
                                }
                        },