Added a function to easily refresh current page.

This commit is contained in:
Pierre 2018-01-07 19:21:02 +01:00
parent 8d3b53664a
commit 5866a8bbba
2 changed files with 16 additions and 0 deletions

View File

@ -159,6 +159,11 @@ var ComunicWeb = {
*/ */
openPage: function(pageURI, additionnalData){}, openPage: function(pageURI, additionnalData){},
/**
* Refresh the current page
*/
refresh_current_page: function(){},
/** /**
* Prepare a template load by specifying datas * Prepare a template load by specifying datas
*/ */

View File

@ -252,6 +252,17 @@ ComunicWeb.common.page = {
return true; 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 * Prepare a template load by specifiying datas
* *