mirror of
https://github.com/wahyd4/jQuery.print.git
synced 2026-08-09 04:46:31 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7f9019356 | ||
|
|
62edb79737 |
+5
-5
@@ -1,5 +1,5 @@
|
||||
/* @license
|
||||
* jQuery.print, version 1.3.0
|
||||
* jQuery.print, version 1.3.1
|
||||
* (c) Sathvik Ponangi, Doers' Guild
|
||||
* Licence: CC-By (http://creativecommons.org/licenses/by/3.0/)
|
||||
*--------------------------------------------------------------------------*/
|
||||
@@ -36,7 +36,7 @@
|
||||
frameWindow.print();
|
||||
}
|
||||
frameWindow.close();
|
||||
deferred.resolve();
|
||||
def.resolve();
|
||||
}, 250);
|
||||
} catch (err) {
|
||||
def.reject(err);
|
||||
@@ -190,9 +190,9 @@
|
||||
}
|
||||
}, 100);
|
||||
})
|
||||
.fail(function () {
|
||||
.fail(function (err) {
|
||||
// Use the pop-up method if iframe fails for some reason
|
||||
console.error("Failed to print from iframe", e.stack, e.message);
|
||||
console.error("Failed to print from iframe", err);
|
||||
printContentInNewWindow(content);
|
||||
})
|
||||
.always(function () {
|
||||
@@ -227,4 +227,4 @@
|
||||
}
|
||||
return this;
|
||||
};
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
||||
Reference in New Issue
Block a user