Archived
1
0
Fork 0

allow embedded use (fixes #56)

This commit is contained in:
Jan Dittberner 2009-07-12 16:11:02 +00:00
parent 68ca59cac4
commit 050caa5830
4 changed files with 11 additions and 9 deletions

View file

@ -51,7 +51,7 @@ function getPathParts(imagesrc) {
}
function updateContentImage(pathParts) {
$.getJSON("ajaxrequest.php", {
$.get(basepath + "ajaxrequest.php", {
"imagename" : pathParts.filename,
"galleryname" : pathParts.gallery
}, function(data, textStatus) {
@ -61,7 +61,7 @@ function updateContentImage(pathParts) {
$("#content_main a").attr("href", data["full"]);
$("#content_main a").attr("title", data["label"]);
document.title = data["title"];
});
}, 'json');
}
$(document).ready(function() {