Skip to content

Commit

Permalink
v2.2.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTarantula committed Jan 26, 2018
1 parent 7265c8e commit 0a47a38
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
3 changes: 3 additions & 0 deletions details.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ Right-click on a query and select `Print All`.

## Changelog

### v2.2.3

* Added a small delay to allow images to load before printing.
### v2.2.2

* VSTS API broke conversation history. Fixed.
Expand Down
2 changes: 1 addition & 1 deletion dist/wiprint-admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wiprint.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/wiprint.js.map

Large diffs are not rendered by default.

28 changes: 16 additions & 12 deletions src/wiprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,13 @@ const printWorkItems = {
);

window.focus(); // needed for IE
let ieprint = document.execCommand("print", false, null);
if (!ieprint) {
window.print();
}
document.getElementById("workitems").innerHTML = "";
setTimeout(function() {
let ieprint = document.execCommand("print", false, null);
if (!ieprint) {
window.print();
}
document.getElementById("workitems").innerHTML = "";
}, 250);
});
},
icon: "static/img/print14.png",
Expand Down Expand Up @@ -133,11 +135,13 @@ const printQueryToolbar = {
);

window.focus(); // needed for IE
let ieprint = document.execCommand("print", false, null);
if (!ieprint) {
window.print();
}
document.getElementById("workitems").innerHTML = "";
setTimeout(function() {
let ieprint = document.execCommand("print", false, null);
if (!ieprint) {
window.print();
}
document.getElementById("workitems").innerHTML = "";
}, 250);
});
});
},
Expand Down Expand Up @@ -247,7 +251,7 @@ function prepare(workItems: Models.WorkItem[]) {
)} ${comment.revisedBy.name.substring(
0,
comment.revisedBy.name.indexOf("<") - 1
)}:</b><br> ${comment.text}</div>`;
)}:</b><br> ${comment.text.htmlize()}</div>`;
});
}
break;
Expand All @@ -271,7 +275,7 @@ function prepare(workItems: Models.WorkItem[]) {
).format(localeTime)} ${comment.revisedBy.name.substring(
0,
comment.revisedBy.name.indexOf("<") - 1
)}:</b><br> ${comment.text}</div>`;
)}:</b><br> ${comment.text.htmlize()}</div>`;
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "wiprint",
"version": "2.2.2",
"version": "2.2.3",
"name": "Work Item Print",
"scopes": [
"vso.work",
Expand Down

0 comments on commit 0a47a38

Please sign in to comment.