Skip to content

Commit

Permalink
All fixed!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 17, 2015
1 parent a2be855 commit 4a198f1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,25 +711,26 @@ function openpic(srcthumb)
$.data(img,'original',url);
location.hash = "#!image="+basename(url);
container.style.display="";
if(typeof $.data(srcthumb,'by') == "undefined")
var d = $(srcthumb).data();
if("by" in d)
{
by = meta['all'] != undefined ? meta['all'] : "Unknown";
}
else
{
by = $.data(srcthumb,'description');
by = d.by;
}
if(typeof $.data(srcthumb,'description') == "undefined")
if("description" in d)
{
desc = "Unbenannt";
desc = d.description;
}
else
{
desc = $.data(srcthumb,'description');
desc = "Unbenannt";
}
infobut.style.display="";
var exif = mdata[url] != undefined ? mdata[url] : json_decode(file_get_contents("download.php/exif/"+url)),
inf = $.data(srcthumb,'description')+", hochgeladen von "+$.data(srcthumb,'by'),
inf = desc+", hochgeladen von "+by,
lstr = blob ? "<br /><a style=\"color:white;\" download=\""+url+"\" href=\""+burl+"\">In Originalgröße downloaden</a>" : "<br /><a style=\"color:white;\" href=\"download.php/"+url+"\">In Originalgröße downloaden</a>";
//lstr += "<br /><a style=\"color:white;\" href=\"#!image="+basename(url)+"\">Link this image</a>";
if($.data(srcthumb,'description') == "undefined")
Expand Down Expand Up @@ -1232,7 +1233,7 @@ if(typeof HTMLElement.prototype.remove != "function")
}
}
var thumbsize = 0,
svg = typeof SVGRect != "undefined" ? true : false,
svg = typeof SVGRect != "undefined" && window.navigator.userAgent.indexOf("Windows") < 0 ? true : false,
realsize = "dyn",
argr,args,
mobile = false,
Expand Down
Loading

0 comments on commit 4a198f1

Please sign in to comment.