页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
linenumberstrue
function main(insight) {
    insight._initExportMenu_new = insight.initExportMenu;
    insight.initExportMenu = function() {
        var DropDownBox = jsloader.resolve("freequery.control.DropDownBox");
        if (!this.exportMenu) {
            this.exportMenu = new DropDownBox(document.body);
            //this.exportMenu.insertItem("TXT", "TXT");
            //this.exportMenu.insertItem("CSV", "CSV");
            //this.exportMenu.insertItem("MHT", "HTML");
            this.exportMenu.insertItem("PDF", "PDF");
            this.exportMenu.insertItem("WORD", "WORD");
           
var Configuration = jsloader.resolve("Configuration");
            if (Configuration.extensionPoints.need2003) {
               //this.exportMenu.insertItem("EXCEL", "EXCEL2003");
            }
           //this.exportMenu.insertItem("EXCEL2007", "EXCEL");
            this.exportMenu.onCloseUp.subscribe(this.doExportMenuCloseUp, this);
        }
    }
    insight.old_doExport = insight.doExport;
    insight.doExport = function() {
        this.old_doExport();
        this.exportMenu.panel.style.height = "";
        //上面是高度自适应
    }
}

说明:

...