half day bookings different keys - probs with mac and ubuntu

half day bookings different keys - probs with mac and ubuntu

Postby magic » Fri Nov 27, 2009 8:21 pm

Hi there,

To make this calendar available to all Users - WIN - Mac - Linux, there is a problem with the half day bookings.

On Windows clients everything works fine,
On Mac clients there is a Problem with the CTRL Key
On Ubuntu Clients (perhaps also other Linux) there is a problem with the "Alt" Key - It doesn't work for me with a german Keyboard Layout

Has anyone a idea what keys are good for all systems?

Perhaps we need a stable solution for charsets

Had anyone made this before?

Thanks Stephan
magic
 
Posts: 2
Joined: Thu Nov 26, 2009 7:24 am

Re: half day bookings different keys - probs with mac and ubuntu

Postby rcph » Sat Nov 28, 2009 11:09 am

Hi,
the script allows you to define your own keys to choose half-day, try different settings

update_cal.js
Code: Select all
function reset_state(){
   //alert(ajax.response);
   if (ajax.response=="on"
   ||  ajax.response=="off"
   ||  ajax.response=="am"
   ||  ajax.response=="pm"
   ){
         state_elm.innerHTML = "<img src='"+image_dir+"cal_"+ajax.response+"_"+elm_num+cal_num_img_type+"' width='"+num_w+"' height='"+num_h+"' border='0'/>";
   }else{
      alert(ajax.response);
   }
}

function what_key(e) {

   if(document.all)e = event; // IE need this
   //alert(e);
      if(e.ctrlKey)      return "am";
      else if(e.altKey)  return "pm";
   else return "ko";
}


Petr
rcph
 
Posts: 31
Joined: Thu Feb 07, 2008 11:58 am
Location: Czech republic


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron