Created
July 13, 2015 14:30
-
-
Save SDKiller/7c057d6bfa14bb3709a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kreditData = { | |
code: 'AzNjE5NzA', | |
items: [ | |
{ | |
title: "Apple iPhone 6+ 128Gb space gray", | |
qty: 1, | |
price: "37400.00" | |
} | |
] | |
}; | |
(function ($) { | |
$(document).ready(function () { | |
$('.link_kredit > img').on('click', function () { | |
kVK.openWidget(kreditData); | |
}); | |
$('#quantity').on('change', function () { | |
kreditData.items[0]['qty'] = parseInt($(this).val()); | |
}); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment