allow embedded use (fixes #56)
This commit is contained in:
parent
68ca59cac4
commit
050caa5830
4 changed files with 11 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Reference in a new issue