Update bookmarklet.js
This commit is contained in:
parent
d53630abd6
commit
c76023c2ab
@ -72,13 +72,15 @@ try {
|
|||||||
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");
|
||||||
|
print();
|
||||||
ga('send', 'event', 'button', 'click', 'print', issueKeyList.length );
|
|
||||||
|
|
||||||
jQuery('#card-print-dialog-content-iframe')[0].contentWindow.print();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function print(){
|
||||||
|
ga('send', 'event', 'button', 'click', 'print', issueKeyList.length );
|
||||||
|
jQuery('#card-print-dialog-content-iframe')[0].contentWindow.print();
|
||||||
|
}
|
||||||
|
|
||||||
function renderCards(issueKeyList, callback) {
|
function renderCards(issueKeyList, callback) {
|
||||||
|
|
||||||
var printFrame = jQuery("#card-print-dialog-content-iframe");
|
var printFrame = jQuery("#card-print-dialog-content-iframe");
|
||||||
@ -344,7 +346,7 @@ try {
|
|||||||
|
|
||||||
result.find("#card-print-dialog-print")
|
result.find("#card-print-dialog-print")
|
||||||
.click(function(event){
|
.click(function(event){
|
||||||
jQuery('#card-print-dialog-content-iframe')[0].contentWindow.print();
|
print();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user