Ignore:
Timestamp:
Nov 14, 2014 10:05:19 PM (11 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

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

    r512 r519  
    102102                success: function (data, textStatus, jqXHR)
    103103                {       
     104                console.log(data);
    104105                        result = jQuery.parseJSON(data);
    105106                        if (result.success == "1")
     
    127128        clearFormFields('#frm2');
    128129});
     130
     131function chargeCard(id)
     132{
     133        $.ajax({
     134                url: 'http://viettel.violet.vn/services/sendmessage/topup/'+id,
     135                type: 'POST',
     136                data: $("#frm3").serialize(),
     137                success: function (data, textStatus, jqXHR)
     138                {       
     139                        result = jQuery.parseJSON(data);
     140                        if(result == "1")
     141                        {
     142                                $("#success_charge").modal('show');
     143                        }else
     144                        {
     145                                $("#not_success_charge").modal('show');
     146                        }
     147                       
     148                }
     149        });
     150}
Note: See TracChangeset for help on using the changeset viewer.