|
@@ -55,43 +55,43 @@
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
- $(document).on('ready', function () {
|
|
|
- $("td a").click(function() {
|
|
|
- var id = $(this).attr('tag');
|
|
|
- var action = $(this).attr('id');
|
|
|
- $.ajax({
|
|
|
- data: 'id='+id,
|
|
|
- url: '{{ _p.web_plugin }}buycourses/src/buycourses.ajax.php?a='+action,
|
|
|
- type: 'POST',
|
|
|
- beforeSend: function() {
|
|
|
- if (action == 'renewable_info') {
|
|
|
- $('a[name=r_'+id+']').html('<em class="fa fa-spinner fa-pulse"></em> {{ 'Loading' | get_lang }}');
|
|
|
- } else if (action == 'service_sale_info') {
|
|
|
- $('a[name=s_'+id+']').html('<em class="fa fa-spinner fa-pulse"></em> {{ 'Loading' | get_lang }}');
|
|
|
- }
|
|
|
- },
|
|
|
- success: function(response) {
|
|
|
- $('a[name=r_'+id+']').html('{{ 'Info' | get_lang }}');
|
|
|
- $('a[name=s_'+id+']').html('{{ 'Info' | get_lang }}');
|
|
|
- var title = "";
|
|
|
- if (action == "renewable_info") {
|
|
|
- title = "{{ 'RecurringPaymentProfilePaypalInformation' | get_plugin_lang('BuyCoursesPlugin') }}";
|
|
|
- } else if (action == 'service_sale_info') {
|
|
|
- title = "{{ 'ServiceSaleInfo' | get_plugin_lang('BuyCoursesPlugin') }}";
|
|
|
- }
|
|
|
- bootbox.dialog({
|
|
|
- message: response,
|
|
|
- title: title,
|
|
|
- buttons: {
|
|
|
- main: {
|
|
|
- label: "{{ 'Close' | get_lang }}",
|
|
|
- className: "btn-default"
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+$(document).on('ready', function () {
|
|
|
+ $("td a").click(function() {
|
|
|
+ var id = $(this).attr('tag');
|
|
|
+ var action = $(this).attr('id');
|
|
|
+ $.ajax({
|
|
|
+ data: 'id='+id,
|
|
|
+ url: '{{ url('legacy_plugin', {'name' :'buycourses/src/buycourses.ajax.php' }) }}?'+a+'=action',
|
|
|
+ type: 'POST',
|
|
|
+ beforeSend: function() {
|
|
|
+ if (action == 'renewable_info') {
|
|
|
+ $('a[name=r_'+id+']').html('<em class="fa fa-spinner fa-pulse"></em> {{ 'Loading' | get_lang }}');
|
|
|
+ } else if (action == 'service_sale_info') {
|
|
|
+ $('a[name=s_'+id+']').html('<em class="fa fa-spinner fa-pulse"></em> {{ 'Loading' | get_lang }}');
|
|
|
}
|
|
|
- })
|
|
|
- });
|
|
|
+ },
|
|
|
+ success: function(response) {
|
|
|
+ $('a[name=r_'+id+']').html('{{ 'Info' | get_lang }}');
|
|
|
+ $('a[name=s_'+id+']').html('{{ 'Info' | get_lang }}');
|
|
|
+ var title = "";
|
|
|
+ if (action == "renewable_info") {
|
|
|
+ title = "{{ 'RecurringPaymentProfilePaypalInformation' | get_plugin_lang('BuyCoursesPlugin') }}";
|
|
|
+ } else if (action == 'service_sale_info') {
|
|
|
+ title = "{{ 'ServiceSaleInfo' | get_plugin_lang('BuyCoursesPlugin') }}";
|
|
|
+ }
|
|
|
+ bootbox.dialog({
|
|
|
+ message: response,
|
|
|
+ title: title,
|
|
|
+ buttons: {
|
|
|
+ main: {
|
|
|
+ label: "{{ 'Close' | get_lang }}",
|
|
|
+ className: "btn-default"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
});
|
|
|
+});
|
|
|
</script>
|
|
|
{% endautoescape %}
|