Ignore:
Timestamp:
Nov 4, 2014 4:14:22 PM (11 years ago)
Author:
quyenla
Message:

collaborator

Location:
pro-violet-viettel/sourcecode/assets/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/assets/js/admin/collaborator.js

    r371 r401  
    3636        });
    3737       
     38
     39
     40function updateuser(id)
     41{
     42    $.ajax({
     43            url: 'cong_tac_vien/cap_nhat',
     44            type: "POST",
     45            data: $("#editUser_"+id).serialize(),
     46            success: function (data, textStatus, jqXHR)
     47            {
     48                $result = jQuery.parseJSON(data);
     49                    if ($result.success == "1")
     50                    {   
     51                    filter();
     52                    $('#close_'+id).click();
     53                    }
     54                    else
     55                    {
     56                       
     57                        for(var i =0;i < $result.errors.length;i++)
     58                        {
     59                          var er= $result.errors[i];
     60                          $("#add_user_"+id).append("<div class='error'>"+er+"</div>");
     61                        }
     62                    }
     63
     64            },
     65            error: function (jqXHR, textStatus, errorThrown)
     66            {
     67                $(".ajaxloading").hide();
     68            }
     69        });
     70    return false;
     71}
  • pro-violet-viettel/sourcecode/assets/js/jquery/jquery.modal.js

    r289 r401  
    1616      target = el.attr('href');
    1717      //Select element by id from href
     18      alert ("1");
    1819      if (/^#/.test(target)) {
    1920        this.$elm = $(target);
Note: See TracChangeset for help on using the changeset viewer.