Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. dayClick: function(date, jsEvent, view){
  2. //não abrir o prompt de inserção
  3. //no caso eu quero apenas que vá para a agendaWeek na data clicada
  4. $("#calendar").fullCalendar('changeView','agendaWeek');
  5. $("#calendar").fullCalendar('gotoDate',date);
  6. }
  7.  
  8. select: function(start, end) {
  9. if($('#calendar').fullCalendar('getView').type != 'month'){
  10. //ele somente entra para cadastrar se a view não for a 'month'.
  11. }
  12. else{
  13. //se for a 'month view' ele passa pelo if e entra neste else, alterando entao a view para agendaWeek e, portanto, nao abrindo o prompt de inserção
  14. $("#calendar").fullCalendar('changeView','agendaWeek');
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement