Changeset 642 for pro-violet-viettel/sourcecode/assets/js/frontend/user.js
- Timestamp:
- Dec 4, 2014 12:17:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/assets/js/frontend/user.js
r638 r642 212 212 } 213 213 214 function regisHistory(id, page) 215 { 216 $.ajax({ 217 url: '/frontend/user/regis_history/'+id +'/page/'+page, 218 type: 'POST', 219 success: function(data) 220 { 221 results = jQuery.parseJSON(data); 222 paging = results.paging; 223 result = results.packagelogs; 224 content = ""; 225 if(result.length>0){ 226 for (var i in result) 227 { 228 content += '<tr><td class="center">'+result[i].source+'</td><td class="center">'+result[i].p_code+'</td><td>'+result[i].created_time+'</td></tr>'; 229 230 } 231 }else 232 { 233 content += '<tr><td class="center" colspan=3>QuÜ vá» chưa ÄÄng kà gói dá»ch vụ nà o!</td></tr>'; 234 } 235 $("#regis-history").find("#content-regis-histoty").html(content); 236 $("#regis-history").find(".pagination").html(paging); 237 $(".ajax_paging").click(function () 238 { 239 $.ajax({ 240 url: $(this).attr("href"), 241 type: "POST", 242 success: function (data, textStatus, jqXHR) 243 { 244 results = jQuery.parseJSON(data); 245 regisHistory(id, results.current_page); 246 }, 247 error: function () 248 { 249 $(".ajaxloading").hide(); 250 } 251 }); 252 return false; 253 }); 254 $("#regis-history").modal('show'); 255 } 256 }); 257 } 258 214 259 function addCommas(nStr) 215 260 {
Note: See TracChangeset
for help on using the changeset viewer.