Closed lorenc-tomasz closed 9 years ago
My solution (base.js):
var ajaxContent = function(url, content, options, useSave)
{
if(lastAjxOpt != null && useSave === true)
{
options = lastAjxOpt;
lastAjxOpt = null;
}
$.ajax(
{
url: url,
type: "GET",
datatype: "html",
data: options
})
.done(function(data)
{
$(content).empty().html(data.html);
if(typeof url !== "undefined" && url != window.location)
{
// window.location.replace(url);
// window.history.pushState(data, '', window.location);
window.history.pushState(data, '', this.url);
}
lastAjxOpt = options;
});
};
Hi, i will watch it ;) (sorry for late)
Edit : fixed https://github.com/MrJuliuss/syntara/commit/c0c60ac4ddb9ad4120bda140e30c6c9ddf9a847c