Changeset 5610


Ignore:
Timestamp:
03/02/12 14:10:16 (12 years ago)
Author:
thiago
Message:

Ticket #2486 - problema de seleção enable e disable na janela do alarme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/mail/js/followupflag.js

    r5588 r5610  
    88         * Implementação do widget de input-combobox 
    99         */ 
     10  
    1011        (function( $ ) { 
    1112                $.widget( "ui.combobox", { 
     
    293294        winElement.find('[name="name"]').combobox(); 
    294295 
    295          
    296296        winElement.find('[name="alarmDate"],[name="alarmTime"]').attr("disabled","disabled"); 
     297         
    297298        winElement.find('[name="alarm"]').click(function(){ 
    298299                if($(this).is(":checked")){ 
     
    301302                        winElement.find('[name="alarmDate"],[name="alarmTime"]').attr("disabled","disabled"); 
    302303                } 
    303         });      
     304        }); 
     305        if(winElement.find('[name="alarm"]').is(":checked")){ 
     306                winElement.find('[name="alarmDate"],[name="alarmTime"]').removeAttr("disabled"); 
     307        } 
    304308        winElement.find('[name="done"]').click(function(){ 
    305309                if($(this).is(":checked")){ 
     
    362366 
    363367 
    364  
    365  
    366368/** 
    367369 * constrói as duas possíveis janela de alerta, utilizando o mesmo template 
Note: See TracChangeset for help on using the changeset viewer.