source:
pro-violet-viettel/sourcecode/assets/js/frontend/user.js
@
469
Last change on this file since 469 was 466, checked in by namnd, 11 years ago | |
---|---|
File size: 418 bytes |
Rev | Line | |
---|---|---|
[466] | 1 | function updateInfo(us_id){ |
2 | $.ajax({ | |
3 | url: 'update_user/' + us_id, | |
4 | type: 'POST', | |
5 | data: $("#frm1").serialize(), | |
6 | success: function (data, textStatus, jqXHR) | |
7 | { | |
8 | result = jQuery.parseJSON(data); | |
9 | if (result.success == "1") | |
10 | { | |
11 | window.location.reload(true); | |
12 | } | |
13 | else | |
14 | { | |
15 | for (var key in result.errors) | |
16 | { | |
17 | $('#'+key).html(result.errors[key]); | |
18 | } | |
19 | } | |
20 | } | |
21 | }); | |
22 | } |
Note: See TracBrowser
for help on using the repository browser.