Project

General

Profile

« Previous | Next » 

Revision d8088940

Added by Serghei Mihai over 11 years ago

agenda: schedules print fix

View differences:

calebasse/static/js/calebasse.agenda.js
166 166
          event_dialog("/" + service + "/agenda/" + current_date + "/update-event/" + $(this).data('event-id') , 'Modifier un événement', '850px', 'Modifier');
167 167
          return false;
168 168
      });
169
      $(base).find('#print-button').click(function() { window.print(); });
170 169

  
171 170
      $('.generate-mail-btn', base).click(function() {
172 171
        var url = '../../dossiers/' + $(this).data('dossier-id') + '/generate?event-id=' + $(this).data('event-id') + '&date=' + $(this).data('date');
......
280 279
          function (dialog) {
281 280
            $('#ajax-dlg .datepicker-date').datepicker({dateFormat: 'd/m/yy', showOn: 'button'});
282 281
            var buttons = $(dialog).dialog('option', 'buttons');
283
            buttons.push({
282
              console.log(buttons);
283
            var delete_button = {
284 284
              text: "Supprimer",
285 285
              id: "delete-btn",
286 286
              click: function () {
......
297 297
                  });
298 298
                }
299 299
              }
300
            });
300
            };
301
            buttons.push(delete_button);
301 302
            $(dialog).dialog('option', 'buttons', buttons);
302 303
          }
303 304
        );
......
357 358
          collapsible: true,
358 359
      });
359 360

  
361
      $('#print-button').click(function() { window.print(); });
362

  
360 363
      enable_new_event();
361 364
      enable_new_appointment();
362 365

  

Also available in: Unified diff