Changeset 424 for pro-violet-viettel/sourcecode/assets/js
- Timestamp:
- Nov 6, 2014 11:06:26 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/assets/js/admin/admin.js
r423 r424 89 89 else 90 90 { 91 /* 92 for(var i =0;i < $result.errors.length;i++) 93 { 94 var er= $result.errors[i]; 95 $("#add_user_"+id).append("<div class='error'>"+er+"</div>"); 96 }*/ 91 console.log("Update error"); 97 92 } 98 93 }, … … 149 144 }); 150 145 151 $("#edit_tab").click(function(){ 152 }); 146 function updateInfo() 147 { 148 $('#email_err').html(""); 149 $('#phone_err').html(""); 150 $.ajax({ 151 url: "cap_nhat_thong_tin_ca_nhan", 152 type: "POST", 153 data: $("#frm1").serialize(), 154 success: function (data, textStatus, jqXHR) 155 { 156 result = jQuery.parseJSON(data); 157 if (result.success == "1") 158 { 159 window.location.reload(true); 160 } 161 else 162 { 163 for (var key in result.errors) 164 { 165 //console.log(result.errors[key]); 166 $('#'+key).html(result.errors[key]); 167 } 168 } 169 170 }, 171 172 }); 173 } 174 175 function changePassword() 176 { 177 $('#passwd_old_err').html(""); 178 $('#passwd_new_err').html(""); 179 $('#confirm_passwd_new_err').html(""); 180 $.ajax({ 181 url: "doi_mat_khau", 182 type: "POST", 183 data: $("#frm2").serialize(), 184 success: function (data, textStatus, jqXHR) 185 { 186 result = jQuery.parseJSON(data); 187 if (result.success == "1") 188 { 189 window.location.reload(true); 190 } 191 else 192 { 193 for (var key in result.errors) 194 { 195 //console.log(result.errors[key]); 196 $('#'+key).html(result.errors[key]); 197 } 198 } 199 200 }, 201 202 }); 203 }
Note: See TracChangeset
for help on using the changeset viewer.