Changeset 580 for pro-violet-viettel/sourcecode/assets/js/frontend
- Timestamp:
- Nov 20, 2014 11:09:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/assets/js/frontend/lecture.js
r555 r580 5 5 } 6 6 } 7 8 if (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 }); 7 37 8 38 function showModal() {
Note: See TracChangeset
for help on using the changeset viewer.