mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Added a function to easily refresh current page.
This commit is contained in:
		@@ -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
 | 
			
		||||
     * 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user