1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

Ajax load php pages only

This commit is contained in:
Afterster 2014-08-08 16:05:00 +02:00
parent 8e141ecb46
commit e3d046974f

View file

@ -74,7 +74,7 @@ $(function() {
$(window).bind('hashchange', function(){
newHash = window.location.hash.substring(1);
if (newHash && newHash.indexOf("prettyPhoto") != 0) {
if (newHash && newHash.indexOf("prettyPhoto") != 0 && newHash.indexOf(".php") > -1) {
loadContentPage(jsWebPath + '/' + newHash);
};
return false;