PHP Classes

File: public/js/pagehit.tool.js

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis PHP CMS Analytics by Page   public/js/pagehit.tool.js   Download  
File: public/js/pagehit.tool.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Melis PHP CMS Analytics by Page
Melis CMS module to provide page access statistics
Author: By
Last change:
Date: 1 year ago
Size: 1,184 bytes
 

Contents

Class file image Download
var _pageId = null; window.melisCmsPageAnalyticsAppendLoadedFlag = function () { $('<div id="id_melis_cms_page_analytics_loaded_flag"></div>').insertAfter("#tableMelisCmsPageAnalytics_wrapper"); } window.setPageId = function(d) { d.pageId = activeTabId.split("_")[0]; } $(function() { var $body = $("body"), zoneId = "", melisKey = ""; //For Opening to the other tab $body.on('click' , "#page_hit_view" , function(){ var $this = $(this), tabName = $this.closest('tr').find("td:nth-child(3)").text() + " / Page Analytics", pageId = activeTabId.split("_")[0]; toolPageDetails.tabOpen(tabName, pageId); _pageId = pageId; }); //this will do the initialization of the page_details var toolPageDetails = { tabOpen: function(name, id){ melisHelper.tabOpen(name, 'fa fa-list-ul', id+'_id_meliscms_page_analytics_page_details', 'meliscms_page_analytics_page_details', { pageHitId : id , tabName : name}); }, } });