[Vtigercrm-developers] calendar enanchemet
Vincent Piton
vincent.piton at free.fr
Fri Aug 28 12:15:47 GMT 2015
Hi,
For those interested, I succeeded in hacking the users box in shared
calendar to be able to check all / uncheck all users :
In layouts/vlayout/modules/calendar/CalendarSharedUsers.tpl
Insert a checkbox at line 74 :
<input type="checkbox" id="checkAlll"/> All
And put this js at the end :
<script type="text/javascript" language="javascript">
$("#checkAlll").change(function () {
$("input:checkbox").prop('checked', $(this).prop("checked"));
var calendarfeeds = jQuery('[data-calendar-feed]');
calendarfeeds.each(function(index,element){
var feedcheckbox = jQuery(element);
feedcheckbox.trigger('change');
});
});
Hope this helps
Regards
-----Message d'origine-----
De : vtigercrm-developers-bounces at lists.vtigercrm.com
[mailto:vtigercrm-developers-bounces at lists.vtigercrm.com] De la part de Alan
Lord
Envoyé : mercredi 26 août 2015 11:59
À : vtigercrm-developers at lists.vtigercrm.com
Objet : Re: [Vtigercrm-developers] calendar enanchemet
On 26/08/15 10:45, Vincent Piton wrote:
> Hi,
> Does anybody hacked the shared calendar to check / uncheck all users
> or check by user groups ?
> When you have lots of users it is a pain to check or uncheck one user
> at a
Yes.
> $query1 = "TRUNCATE vtiger_sharedcalendar";
> $query2 = "UPDATE vtiger_users SET calendarsharedtype = 'private'";
Al
_______________________________________________
http://www.vtiger.com/
More information about the vtigercrm-developers
mailing list