![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 681 Pomógł: 28 Dołączył: 14.08.2014 Ostrzeżenie: (0%) ![]() ![]() |
Mam kod:
Kod jQuery.fn.delete_school = function (id) { var that = $(this); $('.usun').live('click', function () { $.post("/ajax/AjaxUpdateData.php", { remove: id }, function (data) { if (data.status == 'success') { $('#info_upd_data').fadeOut(200,function(){ $(this).removeClass('response-waiting').addClass('response-success').text('blabla').fadeIn(200,function(){ setTimeout(function(){ responseMsg.fadeOut(200,function(){ $(this).removeClass('response-success'); }); },3000); }); }); that.parents('#TableShowEducation').remove(); } else { $('.stop').click(); } }, 'json'); }); }); }; oraz:
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 681 Pomógł: 28 Dołączył: 14.08.2014 Ostrzeżenie: (0%) ![]() ![]() |
jQuery - jquery-1.7.1.min.js
Nie wiem czemu ale nie dodaje mi coś tekstu do klasy. Kod if (data.status == 'success') {
klass = ''; var responseMsg = $('#info_upd_data'); responseMsg.hide().addClass('response-waiting').text('proszę czekać...').fadeIn(200); responseMsg.fadeOut(200,function(){ $(this).removeClass('response-waiting').addClass('response-success').text(data.message).fadeIn(200,function(){ setTimeout(function(){ responseMsg.fadeOut(200,function(){ $(this).removeClass(klass); }); },3000); }); }); that.parents('#TableShowEducation').remove(); } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 05:48 |