From b723a1ff8fb5688b56444674594aa9d6ed9a6cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 11 Oct 2012 14:16:08 +0200 Subject: [PATCH] mockups: relayout the "new appointment" dialog --- mockups/agenda.html | 30 +++++++++++++++++++++--------- mockups/css/style.css | 14 ++++++++++++++ 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/mockups/agenda.html b/mockups/agenda.html index b4313756..2e38fadc 100644 --- a/mockups/agenda.html +++ b/mockups/agenda.html @@ -38,10 +38,16 @@ }); }); $('#agenda-date').datepicker(); - $('.date').datepicker(); + $('.date').datepicker({showOn: 'button'}); + $('#add-intervenant-btn').click(function() { + var text = $(this).prev().val(); + $('#intervenants ul').append('
  • ' + text + '
  • '); + $(this).prev().val('').focus(); + return false; + }); $('#newrdv').click(function() { $('#rdv').dialog({title: 'Nouveau rendez-vous', - width: '500px', + width: '800px', buttons: [ { text: "Fermer", click: function() { $(this).dialog("close"); } }, { text: "Ajouter", @@ -273,19 +279,20 @@