Ignore:
Timestamp:
Nov 20, 2014 11:09:07 AM (10 years ago)
Author:
quyenla
Message:

bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/assets/js/frontend/lecture.js

    r555 r580  
    55    }
    66}
     7
     8if (update_user_info=="1")
     9{
     10    $('#update_user_info').modal({backdrop: 'static'});
     11}
     12$("#update_user_info.btn").click(function () {
     13    $(".error").html("");
     14    $.ajax({
     15        url: 'user/update_info/',
     16        type: 'POST',
     17        data: $("#update_user_info.form").serialize(),
     18        success: function (data, textStatus, jqXHR)
     19        {
     20            result = jQuery.parseJSON(data);
     21            if (result.success == "1")
     22            {
     23                                $('#update_user_info').modal('hide');
     24               
     25            }
     26            else
     27            {
     28                for (var key in result.errors)
     29                {
     30                    $("#"+result.errors[key]['field']+".error").html(result.errors[key]['content']);
     31                   
     32                }
     33            }
     34        }
     35    });
     36});
    737
    838function showModal() {
Note: See TracChangeset for help on using the changeset viewer.