From 38109e175abcd2993f0a944827e5fb7baa83b587 Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 19 Jun 2020 15:25:34 +0530 Subject: [PATCH] Move js to correct place --- alplora/static/alplora/js/virtual_machine_detail.js | 10 ---------- hosting/static/hosting/js/virtual_machine_detail.js | 10 +++++++++- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/alplora/static/alplora/js/virtual_machine_detail.js b/alplora/static/alplora/js/virtual_machine_detail.js index 39e4c3bf..303f95ca 100755 --- a/alplora/static/alplora/js/virtual_machine_detail.js +++ b/alplora/static/alplora/js/virtual_machine_detail.js @@ -15,14 +15,4 @@ $( document ).ready(function() { $('html,body').scrollTop(scrollmem); }); - - // Toggle subscription and one-time payments div - $('#li-one-time-charges').click(function() { - console.log("li-one-time-charges clicked"); - }); - $('#li-subscriptions').click(function() { - console.log("li-one-time-charges clicked"); - }); - - }); \ No newline at end of file diff --git a/hosting/static/hosting/js/virtual_machine_detail.js b/hosting/static/hosting/js/virtual_machine_detail.js index 28592883..46d65995 100644 --- a/hosting/static/hosting/js/virtual_machine_detail.js +++ b/hosting/static/hosting/js/virtual_machine_detail.js @@ -135,7 +135,15 @@ $(document).ready(function() { }); $('#createvm-modal').on('hidden.bs.modal', function () { $(this).find('.modal-footer .btn').addClass('hide'); - }) + }); + + // Toggle subscription and one-time payments div + $('#li-one-time-charges').click(function() { + console.log("li-one-time-charges clicked"); + }); + $('#li-subscriptions').click(function() { + console.log("li-one-time-charges clicked"); + }); }); window.onload = function () {