mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 19:20:52 -04:00
1) moves the print button from the quick pane to thumb_bottom 2) Creates an entry into the proxy table
25 lines
558 B
JavaScript
25 lines
558 B
JavaScript
$(document).ready(function() {
|
|
$(".gDigibugPrintButton a").click(function(e) {
|
|
e.preventDefault();
|
|
queue_print(e);
|
|
});
|
|
});
|
|
|
|
function queue_print(e) {
|
|
var parent = e.currentTarget.parentNode;
|
|
$(parent).addClass("gLoadingLarge");
|
|
$.ajax({
|
|
type: "GET",
|
|
url: e.currentTarget.href,
|
|
dataType: "json",
|
|
success: function(data) {
|
|
$(parent).removeClass("gLoadingLarge");
|
|
if (data.location) {
|
|
window.location = data.location;
|
|
} else if (data.reload) {
|
|
window.location.reload();
|
|
}
|
|
}
|
|
});
|
|
};
|