Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [jQuery] Fullcalendar - eventDrop, event uchwyt element
expert
post
Post #1





Grupa: Zarejestrowani
Postów: 211
Pomógł: 4
Dołączył: 29.10.2008

Ostrzeżenie: (0%)
-----


Kod
eventDrop: function(event,x,x,x,revertFunc) {
    $.post('data.php', {danepost: 'cośtam'} , function(data) {
        if(data!='1'){revertFunc();$(event).find('div.fc-event-inner').effect("highlight", {color: "black"}, 1500);}
    });
},


Potrzebuje w evencie złapać tak uchwyt, aby móc wywołać efekt 'highlight'. W 'eventRender' jest opcja 'element', zaś w eventDrop, eventResize nie ma. Jak to ugrysć?

Ten post edytował expert 28.07.2012, 21:48:09
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
d3ut3r
post
Post #2





Grupa: Zarejestrowani
Postów: 709
Pomógł: 176
Dołączył: 24.10.2010

Ostrzeżenie: (0%)
-----


Jedyne co udało mi się wymyślić smile.gif

http://jsfiddle.net/TaugE/


--------------------
http://d3ut3r.wordpress.com/ | mysql_* jest przestarzałe UŻYWAJ PDO!
Go to the top of the page
+Quote Post
expert
post
Post #3





Grupa: Zarejestrowani
Postów: 211
Pomógł: 4
Dołączył: 29.10.2008

Ostrzeżenie: (0%)
-----


Myśl jest dobra, tylko musze to przerobić smile.gif Dzięki
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 14:00