Skip to content

Commit

Permalink
added popover for script preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
markdaugherty committed Jul 27, 2016
1 parent 057214d commit 90b2225
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<groupId>com.citytechinc.aem.groovy.console</groupId>
<artifactId>aem-groovy-console</artifactId>
<packaging>jar</packaging>
<version>8.0.1</version>
<version>8.0.2</version>
<name>AEM Groovy Console</name>
<description>
The AEM Groovy Console provides an interface for running Groovy scripts in the AEM (Adobe CQ) container. Scripts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ GroovyConsole.Audit = function () {
rowCallback: function (row, data) {
$('td:eq(1)', row).html('<a href="' + data.link + '">' + data.date + '</a>');
$('td:eq(2)', row).html('<code>' + data.scriptPreview + '</code>');
$('td:eq(2)', row).popover({
container: 'body',
content: '<pre>' + data.script + '</pre>',
html: true,
placement: 'top',
trigger: 'hover'
});

if (data.exception.length) {
$('td:eq(3)', row).html('<span class="label label-danger">' + data.exception + '</span>');
Expand Down

0 comments on commit 90b2225

Please sign in to comment.