linccce

updated crap

Sep 19th, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery('body').on('click','#yt24',function(){jQuery.ajax({'type':'post','url':$(this).attr("href"),'context':'this','success':function(data) {
  2.                                 $.fn.yiiGridView.update("duties-grid");
  3.                                 $.fn.yiiGridView.update("project-grid");
  4.                                 },'complete':function(){
  5.                                 var url = $(this).attr("href");
  6.                                 var arr = url.split("/");
  7.                                 var id = arr[arr.lenght-1];
  8.                                
  9.                                 console.log(data);
  10.                                 /*$.post("/YiiMain/app/ktcapskaita/index.php/form/UpdatedList", { "project_id": id }, function(data){
  11.                                         var data = JSON.parse(data);
  12.                                         $("#Duties_project_id").html(data.dropdown);
  13.                                 });*/
  14.                                 },'cache':false,'data':jQuery(this).parents("form").serialize()});return false;});
Advertisement
Add Comment
Please, Sign In to add comment