1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 10:19:25 +02:00

Use UI::find_template everytime there's a '/templates/…'

Note: This concerns everything but the install files
This commit is contained in:
Niols 2015-06-06 18:54:05 +02:00
parent 35477d0a5e
commit a1f6a073cb
136 changed files with 365 additions and 672 deletions

View file

@ -92,25 +92,23 @@ $(function() {
var postData = $(this).serializeArray();
var formURL = $(this).attr("action");
if (formURL.indexOf('javascript:') !== 0) {
$.ajax(
{
url : formURL,
type: "POST",
data : postData,
success:function(data, status, jqXHR)
{
loadContentData(data, status, jqXHR);
window.location.hash = "";
},
error: function(jqXHR, status, errorThrown)
{
alert(errorThrown);
}
});
$.ajax(
{
url : formURL,
type: "POST",
data : postData,
success:function(data, status, jqXHR)
{
loadContentData(data, status, jqXHR);
window.location.hash = "";
},
error: function(jqXHR, status, errorThrown)
{
alert(errorThrown);
}
});
e.preventDefault();
}
e.preventDefault();
}
});