diff options
| author | Tristan Zur <tzur@webserver.ccwn.org> | 2015-06-10 20:55:53 +0200 |
|---|---|---|
| committer | Tristan Zur <tzur@webserver.ccwn.org> | 2015-06-10 20:55:53 +0200 |
| commit | 406abd7c4df1ace2cd3e4e17159e8941a2e8c0c4 (patch) | |
| tree | a324be16021f44f2fd6d55e609f47024e945b1db /modules/localprint/js/localprint.js | |
Initial import
Diffstat (limited to 'modules/localprint/js/localprint.js')
| -rw-r--r-- | modules/localprint/js/localprint.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/localprint/js/localprint.js b/modules/localprint/js/localprint.js new file mode 100644 index 0000000..6f4ab22 --- /dev/null +++ b/modules/localprint/js/localprint.js @@ -0,0 +1,8 @@ +$(document).ready(function(){
+ alert('One');
+ $("#g-localprint-link").click(function() {
+ alert('The two of them');
+ $("body").append("<img src='<?= $item->file_url(true) ?>' class='printimage' >");
+ window.print();
+ });
+});
\ No newline at end of file |
