[Vtigercrm-developers] calendar enanchemet

Vincent Piton vincent.piton at free.fr
Sat Aug 29 08:40:14 GMT 2015


Hi Lajeesh,
Thank you for your input, can you share it with us ?
Regards
Vincent 


> Le 29 août 2015 à 08:41, lajeesh k <lajeeshk at gmail.com> a écrit :
> 
> Hi Vincent,
> 
> I have done customization to shared calendar. list events by role, check/uncheck by groups
> 
> 
> Regards,
> Lajeesh
> 
>> On Fri, Aug 28, 2015 at 5:45 PM, Vincent Piton <vincent.piton at free.fr> wrote:
>> 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/
>> 
>> 
>> _______________________________________________
>> http://www.vtiger.com/
> 
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150829/a621c718/attachment.html>


More information about the vtigercrm-developers mailing list