mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Made easier to leave the website
This commit is contained in:
parent
1e299b6d5e
commit
b412214976
@ -186,8 +186,9 @@ ComunicWeb.common.page = {
|
|||||||
//Change page title
|
//Change page title
|
||||||
document.title = pageInfos.pageTitle;
|
document.title = pageInfos.pageTitle;
|
||||||
|
|
||||||
//Change page URL
|
//Change page URL, if required
|
||||||
ComunicWeb.common.url.changeURI(document.title, pageURI);
|
if(additionnalData.no_url_update ? !additionnalData.no_url_update : true)
|
||||||
|
ComunicWeb.common.url.changeURI(document.title, pageURI);
|
||||||
|
|
||||||
//Save new url
|
//Save new url
|
||||||
this._current_url = window.location.href.toString();
|
this._current_url = window.location.href.toString();
|
||||||
@ -274,7 +275,7 @@ ComunicWeb.common.page = {
|
|||||||
var currentPage = ComunicWeb.common.url.getCurrentWebsiteURL();
|
var currentPage = ComunicWeb.common.url.getCurrentWebsiteURL();
|
||||||
|
|
||||||
//Open a page
|
//Open a page
|
||||||
this.openPage(currentPage);
|
this.openPage(currentPage, {no_url_update: true});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -52,11 +52,8 @@ ComunicWeb.common.system = {
|
|||||||
* Open a page
|
* Open a page
|
||||||
*/
|
*/
|
||||||
if(!openPage){
|
if(!openPage){
|
||||||
//Get current page URI
|
//Refresh current page
|
||||||
var currentPage = ComunicWeb.common.url.getCurrentWebsiteURL();
|
ComunicWeb.common.page.refresh_current_page();
|
||||||
|
|
||||||
//Open a page
|
|
||||||
ComunicWeb.common.page.openPage(currentPage);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
//Open specified page
|
//Open specified page
|
||||||
|
Loading…
Reference in New Issue
Block a user