Subversion Repository Public Repository

Nextrek

Diff Revisions 1071 vs 1072 for /Web/Smartcharging_search/js/scripts.js

Diff revisions: vs.
  @@ -36,4 +36,13 @@
36 36 var timeStr = date.substring(dateDividerIndex + 1, date.length);
37 37
38 38 return dateStr + ', ' + getText("alle", document.documentElement.lang) + ' ' + timeStr;
39 + }
40 +
41 + function checkValidationFile(filePath){
42 + var img = new Image();
43 + img.onload = function() {
44 + return this.width > 0 && this.height > 0 ? true : false;
45 + }
46 + img.src = filePath;
47 +
39 48 }