Commit d6007abc authored by Andy J's avatar Andy J

admin url

parent 7ecb681a
......@@ -81,7 +81,7 @@
</div>
<script type="text/javascript">
var kPlugin = '{$smarty.get.kPlugin}';
var url = '{$post_url}';
var payments = ['basic', 'express', 'plus', 'finance'];
$(payments).each(function(i, item) {
......@@ -91,7 +91,7 @@
function check_payment(type) {
$.ajax({
dataType: "json",
url: '/admin/plugin.php?kPlugin='+kPlugin+'&validate=' + type,
url: url+'&validate=' + type,
success: function(data) {
var label_type = data['status'] == 'success' ? 'Gültig' : 'Ungültig';
var class_state = data['status'] == 'success' ? 'success' : 'danger';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment