blob: be1696ddc2de01bfda5ace6fc010e5ba9b86d328 [file] [log] [blame]
function fileName(src) {
var array = src.split('/');
return array[array.length -1];
};
function currentSrcFileName(id) {
var currentSrc = document.getElementById(id).currentSrc;
return fileName(currentSrc);
};
function currentSrcFileNameNoParams(id) {
var currentSrc = document.getElementById(id).currentSrc;
var name = fileName(currentSrc).split('?');
return name[0];
};