change location using href in javascript for phonegap support

This commit is contained in:
2013-04-11 08:34:33 +02:00
parent 599541f430
commit b6a65d981f
3 changed files with 6 additions and 3 deletions
@@ -135,7 +135,7 @@ function redirect_to(mapping, variables){
vars.push(name + '=' +variables[name]);
Qstorage.setItem(name, variables[name]);
}
window.location = QMobile.root_url() + path_mapping[mapping] + '.html'
window.location.href = QMobile.root_url() + path_mapping[mapping] + '.html'
}
function direct_to_site(mapping, variables){
variables || (variables = {});