didInsertElement: function()

in app/scripts/views/dialog/nodeSelector.js [7:33]


    didInsertElement: function () {
        this.get('controller').on('close', this, this.closeEditor);
        this.get('controller').on('nodeSelected', this, this.selectNode);
        this.get('controller').on('saveNode', this, this.saveNode);

        this.get('controller').send('loadData');

        this.addMask();

        var view = this;

        var input = $('.editor-tabs').children('.node-selector-body').children(".widget-search").children("input");

        input.on('keyup', function (event) {
            var startExpression = $(this).val();
            view.updateNodeList(startExpression);
        });

        input.on("input", function (event) {
            var nodeFound = view.findNode($(this).val(), true);

            if (nodeFound) {
                view.markSelectedNode($(this).val());
            }
        });

    },