Project

General

Profile

« Previous | Next » 

Revision e1551fb2

Added by Jérôme Schneider over 12 years ago

agenda: select an agenda when no one is selected fixes (#2313)

View differences:

calebasse/static/js/calebasse.agenda.js
137 137
        /* load worker appointments tab */
138 138
        $('#tabs-worker-' + worker_id).load('ajax-worker-tab/' + worker_id,
139 139
            function () {
140
	       $(this).children('div').accordion({active: false, autoHeight: false});
140
               $(this).children('div').accordion({active: false, autoHeight: false});
141 141
               enable_events(this);
142 142
            }
143 143
        );
......
193 193
        /* load ressource appointments tab */
194 194
        $('#tabs-ressource-' + ressource_id).load('ajax-ressource-tab/' + ressource_id,
195 195
            function () {
196
	       $(this).children('div').accordion({active: false, autoHeight: false});
196
               $(this).children('div').accordion({active: false, autoHeight: false});
197 197
               enable_events(this);
198 198
            }
199 199
        );
......
235 235
                  $('#rdv .datepicker-date').datepicker({dateFormat: 'd/m/yy', showOn: 'button'});
236 236
                  $('#id_description').attr('rows', '3');
237 237
                  $('#id_description').attr('cols', '30');
238
		  var deck = $('#id_participants_on_deck');
238
                  var deck = $('#id_participants_on_deck');
239 239
                  $(deck).bind('added', function() {
240 240
                      var added = $(deck).find('div:last');
241 241
                      var t = added.attr('id').indexOf('_group:');
......
288 288
                  $('#filtre input').keyup();
289 289
                  $('#filtre input').focus();
290 290
              }
291
             if (! ($('li.agenda:visible').hasClass('ui-state-active'))) {
292
                $('li.agenda:visible:last a.tab').click();
293
              }
291 294
          });
292 295

  
293 296
          $('a.tab').click(function() {
......
342 345
      }
343 346

  
344 347
      $('a.close-tab').click(function() {
348
          console.log('close');
345 349
          $('#' + $(this).data('target')).click()
350
          console.log($(this).data('target'));
346 351
      });
347 352

  
348 353

  
349 354
      /* Gestion du filtre sur les utilisateurs */
350 355
      $('#filtre input').keyup(function() {
351 356
          var filtre = $(this).val();
352
	  if ($('#show-everybody').length) {
357
          if ($('#show-everybody').length) {
353 358
              var everybody = $('#show-everybody').is(':checked');
354
	  } else {
359
          } else {
355 360
              var everybody = true;
356 361
          }
357 362
          if (filtre) {

Also available in: Unified diff