Created
October 30, 2013 19:46
-
-
Save amphro/7238988 to your computer and use it in GitHub Desktop.
A bookmarklet that opens the Apex Log body in a new tab when selecting a log from the Developer Console. Not formatted, as it is a bookmarklet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var l=Ext.getCmp('traceGrid'); var s=l.selModel.selected; if (s && s.length===1) { var id=s.items[0].data.Id; SfdcDevConsole.ToolingAPI.sobject('ApexLog', {id:id, body:true, success:function(r){var w=window.open('', id);w.document.write(r.replace(/\n/g,'<br/>'));w.focus();}})} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment