Update bookmarklet.js
This commit is contained in:
parent
de9bcf5d1a
commit
d53630abd6
@ -58,22 +58,23 @@ try {
|
|||||||
|
|
||||||
var issueKeyList = getSelectedIssueKeyList();
|
var issueKeyList = getSelectedIssueKeyList();
|
||||||
|
|
||||||
ga('send', 'event', 'bookmarklet', 'click', 'print', issueKeyList.length );
|
|
||||||
|
|
||||||
if(issueKeyList.length <= 0){
|
if(issueKeyList.length <= 0){
|
||||||
alert("Please select at least one issue.");
|
alert("Please select at least one issue.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ga('send', 'pageview');
|
|
||||||
|
|
||||||
// open print preview
|
// open print preview
|
||||||
jQuery("body").append(printOverlayHTML);
|
jQuery("body").append(printOverlayHTML);
|
||||||
jQuery("#card-print-overlay").prepend(printOverlayStyle);
|
jQuery("#card-print-overlay").prepend(printOverlayStyle);
|
||||||
|
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
jQuery("#card-print-dialog-title").text("Card Print - Loading " + issueKeyList.length + " issues...");
|
jQuery("#card-print-dialog-title").text("Card Print - Loading " + issueKeyList.length + " issues...");
|
||||||
renderCards(issueKeyList, function(){
|
renderCards(issueKeyList, function(){
|
||||||
jQuery("#card-print-dialog-title").text("Card Print");
|
jQuery("#card-print-dialog-title").text("Card Print");
|
||||||
|
|
||||||
|
ga('send', 'event', 'button', 'click', 'print', issueKeyList.length );
|
||||||
|
|
||||||
jQuery('#card-print-dialog-content-iframe')[0].contentWindow.print();
|
jQuery('#card-print-dialog-content-iframe')[0].contentWindow.print();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1073,6 +1074,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
log.error(err.message);
|
||||||
ga('send', 'exception', {
|
ga('send', 'exception', {
|
||||||
'exDescription': err.message,
|
'exDescription': err.message,
|
||||||
'exFatal': true
|
'exFatal': true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user