Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function unable(par1, par2) {
- popBox();
- function popBox() {
- x = confirm('Are you sure? ');
- if (x == true) {
- var xhr = new XMLHttpRequest();
- xhr.open("POST", "userChangeTariffOptions?contractNumber=" + par1
- + "&tariffOptionId=" + par2 + "&method=unable", false);
- xhr.send();
- if (xhr.status == 405) {
- alert('Incompatible options')
- }
- }
- }
- }</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement