Page 1 of 1

Usebility for Admins

PostPosted: Sun Nov 27, 2011 12:17 pm
by falkone
I've added some usebility for admins at the booking page. It makes the Key-
Description clickable, so that the "Click Method:" will be changed to the key you clicked.
insert in bookings.admin.php after line 90 (the closing tag from <div id="key_wrapper">)
Code: Select all
<script type="text/javascript">
/* <![CDATA[ */
   var Keys = new Array();
   $("id_predefined_state").getChildren().each(function(foo, index){
      Keys[foo.get("text")] = foo.get("value");
   });
   $("id_predefined_state").addEvent("change",function(event) {
      update();
   });
   $("key").addEvent("click:relay(li)", function(event,node){
      var key = node.get("text");
      if (key) {
         $("id_predefined_state").set("value", Keys[key]);
         update()
      }
   });
   function update() {
      var selected = $("id_predefined_state").getElement(":selected").get("text");
      $("key").getElements("li").each(function(foo, index){
         if (foo.get("text") == selected)
            foo.addClass("active")
         else
            foo.removeClass("active")
      });
      }
/* ]]> */
</script>

insert in admin-calendar.css (at the end - or somewhere else)
Code: Select all
.active span {color:red;text-decoration:underline;}
#key li {cursor:pointer;}

Re: Usebility for Admins

PostPosted: Sat Dec 10, 2011 7:42 am
by rozzynaa
How do I upload my iphone calendar into my yahoo calendar on my pc? My iphone calendar is fully populated with information. My yahoo calendar is blank but I'd like to sync the 2 calendars so I have a back up of my iphone.
____________________
market samurai ~ marketsamurai