Project

General

Profile

« Previous | Next » 

Revision 33d0696c

Added by Serghei Mihai over 9 years ago

agenda: on acts validation highlight block of changed act state

Closes #3148

View differences:

calebasse/static/css/agenda.css
287 287
#activity #print-button-therapeutes-activity {
288 288
    float: right;
289 289
}
290

  
291
div .changed {
292
    box-shadow: 2px 2px .5em 5px #db9595;
293
}
calebasse/static/js/calebasse.agenda.js
344 344

  
345 345
(function($) {
346 346
  $(function() {
347
      $('#actes .frame select').on('change', function() {
348
          var container = $(this).closest('.frame');
349
          if ($(this).data('previous') != $(this).val()) {
350
              container.addClass('changed');
351
          } else {
352
              container.removeClass('changed');
353
          }
354

  
355
      });
356

  
347 357
      $('#tabs').tabs({
348 358
          load: function(event, ui) {
349 359
              var tab = $(ui.tab).attr('id').split('-');

Also available in: Unified diff