From f4def397712abfb904523e7ad2a64255509b4aec Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Thu, 21 Dec 2017 12:28:19 +0530 Subject: first commit --- js/socm.js~ | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 js/socm.js~ (limited to 'js/socm.js~') diff --git a/js/socm.js~ b/js/socm.js~ new file mode 100644 index 0000000..f10101a --- /dev/null +++ b/js/socm.js~ @@ -0,0 +1,22 @@ +(function($) { + $(document).ready(function() { + + var basePath = Drupal.settings.basePath; + var modPath1 = basePath + "scilab-on-cloud-management/display-books/"; + $Selected = $(".selected"); + $Selected.click(function(e) { + $(".sync-msg").remove(); + $(this).after("Saving..."); + $.ajax({ + url: modPath1 + "ajax/selected/" + $(this).attr("data-bid"), + success: function(data) { + $(".sync-msg").remove(); + console.log("success"); + console.log(data); + } + }); + }); + + + }); +})(jQuery); -- cgit