Comparing version 0.1.23 to 0.1.24
@@ -243,3 +243,4 @@ var imdone = {data:{}}; | ||
editBtn = $("#edit-btn"), | ||
previewBtn = $("#preview-btn"); | ||
previewBtn = $("#preview-btn"), | ||
printBtn = $("#print-btn"); | ||
@@ -252,3 +253,17 @@ editBar.affix().find(".btn").tooltip({placement:"bottom"}); | ||
editor.getSession().setUseWrapMode(true); | ||
function print() { | ||
var printOptions = { | ||
pageTitle: imdone.source.path | ||
}; | ||
if(imdone.preview && imdone.source.lang == "md") { | ||
preview.printElement(printOptions); | ||
} else { | ||
printOptions.overrideElementCSS = true; | ||
$("<pre><code>" + editor.getValue() + "</code></pre>").printElement(printOptions); | ||
} | ||
} | ||
printBtn.live("click", print); | ||
//Show the editor | ||
@@ -255,0 +270,0 @@ function showEditor() { |
{ | ||
"name": "imdone", | ||
"preferGlobal": "true", | ||
"version": "0.1.23", | ||
"version": "0.1.24", | ||
"description": "Simple, file-based kanban", | ||
@@ -6,0 +6,0 @@ "homepage": "http://piascikj.github.com/imdone/", |
@@ -121,5 +121,9 @@ | ||
- [Convert front end to use backbone.js and require.js](#todo:40) | ||
- [respect marked configuration in client javascript](#todo:50) | ||
Release notes | ||
---- | ||
####0.1.24 | ||
- Print source and markdown preview | ||
####0.1.23 | ||
@@ -126,0 +130,0 @@ - Upgrade express to latest version |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3890290
158
11865
186