Files
gallery3/modules/digibug/js/digibug.js
T
Tim Almdal 58d5624e40 This commit moves a little further along the path:
1) moves the print button from the quick pane to thumb_bottom
2) Creates an entry into the proxy table
2009-06-22 21:51:22 -07:00

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();
}
}
});
};