Update bookmarklet.js

This commit is contained in:
Bengt Brodersen 2015-01-28 00:55:30 +01:00
parent c76023c2ab
commit 3248b18783

View File

@ -77,8 +77,11 @@ try {
}
function print(){
ga('send', 'event', 'button', 'click', 'print', issueKeyList.length );
ga('send', 'event', 'button', 'click', 'print', $(".card").length );
jQuery('#card-print-dialog-content-iframe')[0].contentWindow.print();
console.logInfo(jQuery('#card-print-dialog-content-iframe'));
console.logInfo(jQuery('#card-print-dialog-content-iframe')[0]);
console.logInfo(jQuery('#card-print-dialog-content-iframe')[0].contentWindow);
}
function renderCards(issueKeyList, callback) {
@ -1076,7 +1079,7 @@ try {
}
} catch (err) {
log.error(err.message);
console.logError(err.message);
ga('send', 'exception', {
'exDescription': err.message,
'exFatal': true