mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 18:08:50 +00:00
Added a function to easily refresh current page.
This commit is contained in:
parent
8d3b53664a
commit
5866a8bbba
@ -159,6 +159,11 @@ var ComunicWeb = {
|
||||
*/
|
||||
openPage: function(pageURI, additionnalData){},
|
||||
|
||||
/**
|
||||
* Refresh the current page
|
||||
*/
|
||||
refresh_current_page: function(){},
|
||||
|
||||
/**
|
||||
* Prepare a template load by specifying datas
|
||||
*/
|
||||
|
@ -252,6 +252,17 @@ ComunicWeb.common.page = {
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Refresh the current page
|
||||
*/
|
||||
refresh_current_page: function(){
|
||||
//Get current page URI
|
||||
var currentPage = ComunicWeb.common.url.getCurrentWebsiteURL();
|
||||
|
||||
//Open a page
|
||||
this.openPage(currentPage);
|
||||
},
|
||||
|
||||
/**
|
||||
* Prepare a template load by specifiying datas
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user