[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 {*<!-- 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 -->*} 12 13 <div class="dashboardWidgetHeader"> 14 <table width="100%" cellspacing="0" cellpadding="0"> 15 <thead> 16 <tr> 17 <th class="span4"> 18 <div class="dashboardTitle" title="{vtranslate($WIDGET->getTitle(), $MODULE_NAME)}"><b> {vtranslate($WIDGET->getTitle())}</b></div> 19 </th> 20 <th class="span2"> 21 <div> 22 <select class="widgetFilter" name="type" style='width:100px;margin-bottom:0px'> 23 <option value="{$CURRENTUSER->getId()}">{vtranslate('LBL_MINE')}</option> 24 <option value="all">{vtranslate('LBL_ALL')}</option> 25 </select> 26 </div> 27 </th> 28 <th class="refresh span1" align="right"> 29 <span style="position:relative;"></span> 30 </th> 31 <th class="widgeticons span5" align="right"> 32 {include file="dashboards/DashboardHeaderIcons.tpl"|@vtemplate_path:$MODULE_NAME} 33 </th> 34 </tr> 35 </thead> 36 </table> 37 </div> 38 <div name="history" class="dashboardWidgetContent"> 39 {include file="dashboards/CalendarActivitiesContents.tpl"|@vtemplate_path:$MODULE_NAME WIDGET=$WIDGET} 40 </div> 41 42 43 44 <script type='text/javascript'> 45 $(document).ready(function(){ 46 jQuery('.dashboardWidgetContent').off('click', 'a[name="history_more"]'); 47 jQuery('.dashboardWidgetContent').on('click', 'a[name="history_more"]', function(e) { 48 var element = jQuery(e.currentTarget); 49 var parent = jQuery(e.delegateTarget).closest('.dashboardWidget'); 50 jQuery(parent).find('.slimScrollDiv').css('overflow','visible'); 51 var type = parent.find("[name='type']").val(); 52 var url = element.data('url')+'&content=true&type='+type; 53 AppConnector.request(url).then(function(data) { 54 jQuery(parent).find('.dashboardWidgetContent').append(data); 55 element.parent().remove(); 56 }); 57 }); 58 }); 59 </script>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |