/* *+------------------------------------------------------------------------+ *| Licensed Materials - Property of IBM *| IBM Cognos Products: Viewer *| (C) Copyright IBM Corp. 2001, 2013 *| *| US Government Users Restricted Rights - Use, duplication or *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *| *+------------------------------------------------------------------------+ */ dojo.provide("bux.reportViewer.ReportInfo"); dojo.require("bux.Tooltip"); dojo.declare("bux.reportViewer.ReportInfo", bux.TooltipBase, { templateString: "
\n\t
\n\t
\n
\n", title: "", text: "", linkText: null, linkScript: null, constructor: function(args) { if(args.focusElement) { //We're supposed to get this for free from dojo, //but it's not working, so have to do it manually: dojo.connect(args.focusElement, "onfocus", this, "_onHover"); dojo.connect(args.focusElement, "onblur", this, "_onUnHover"); } }, createMarkup: function() { var linkId = this.connectId + "_linkId"; var hrefTextLink = dojo.isIE || dojo.isTrident ? '"#"' : '"javascript:void(0);"'; //IE is over enthusiastic to trigger window.onbeforeunload //event for clicking on link which does not intend to open a new window var content = ""; content += ""; content += ""; content += ""; content += ""; content += ""; content += ""; content += ""; content += ""; if( this.linkScript ) { content += ""; } else { content += ""; } content += ""; content += "
"; content += html_encode(this.title); content += "
"; content += html_encode(this.text); content += "
"; content += '' + html_encode(this.linkText) + ''; content += "
"; return content; } });