Ignore:
Timestamp:
01/18/12 09:36:25 (12 years ago)
Author:
gustavo
Message:

Ticket #2434 - Adicionada validações na tela de criar evento a partir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/helpers.js

    r5389 r5392  
    393393 
    394394            UI.dialogs.addEvent.find('input.date').datepicker({dateFormat: 'dd/mm/yy'}); 
    395                 UI.dialogs.addEvent.find('input.time').timepicker({  
    396                         closeText: 'Ok', 
    397                         hourGrid: 4, 
    398                         minuteGrid: 10, 
    399                         ampm : ((User.preferences.hourFormat.length > 5) ? true: false), 
    400                         timeFormat: "hh:mm tt", 
    401                         onSelect: function (selectedDateTime){ 
    402                                 if(!(User.preferences.hourFormat.length == 5)) 
    403                                         $(this).val(selectedDateTime.replace(/[\.]/gi, ""));                                                             
    404                         }, 
    405                         onClose : function (selectedDateTime){ 
    406                                 if(!(User.preferences.hourFormat.length == 5)) 
    407                                         $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 
    408                         } 
    409                 }); 
     395                if(path == ""){ 
     396                        UI.dialogs.addEvent.find('input.time').timepicker({  
     397                                closeText: 'Ok', 
     398                                hourGrid: 4, 
     399                                minuteGrid: 10, 
     400                                ampm : ((User.preferences.hourFormat.length > 5) ? true: false), 
     401                                timeFormat: "hh:mm tt", 
     402                                onSelect: function (selectedDateTime){ 
     403                                        if(!(User.preferences.hourFormat.length == 5)) 
     404                                                $(this).val(selectedDateTime.replace(/[\.]/gi, ""));                                                             
     405                                }, 
     406                                onClose : function (selectedDateTime){ 
     407                                        if(!(User.preferences.hourFormat.length == 5)) 
     408                                                $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 
     409                                } 
     410                        }); 
     411                } 
    410412 
    411413            UI.dialogs.addEvent.find('.button-add-alarms').click(function(){ 
Note: See TracChangeset for help on using the changeset viewer.