diff options
author | prashant | 2014-09-25 15:14:21 +0530 |
---|---|---|
committer | prashant | 2014-09-25 15:14:21 +0530 |
commit | 1fc8484b3ad7858ee19b3658ac3f3d099e1e54c9 (patch) | |
tree | c7ea5221d53e335d44c3ad6c23d148f4203a29b8 /js | |
parent | 107d64f7166cca11233a690ee127838bade6108d (diff) | |
download | textbook_companion_fixer-1fc8484b3ad7858ee19b3658ac3f3d099e1e54c9.tar.gz textbook_companion_fixer-1fc8484b3ad7858ee19b3658ac3f3d099e1e54c9.tar.bz2 textbook_companion_fixer-1fc8484b3ad7858ee19b3658ac3f3d099e1e54c9.zip |
added aicte book disable eanble functionaty
Diffstat (limited to 'js')
-rwxr-xr-x[-rw-r--r--] | js/scilab_fixer.js | 17 | ||||
-rwxr-xr-x[-rw-r--r--] | js/selection.js | 0 |
2 files changed, 17 insertions, 0 deletions
diff --git a/js/scilab_fixer.js b/js/scilab_fixer.js index b48832e..657cb61 100644..100755 --- a/js/scilab_fixer.js +++ b/js/scilab_fixer.js @@ -1,6 +1,9 @@ $(document).ready(function() { var basePath = Drupal.settings.basePath; var modPath = basePath + "fix/"; + var modPath1 = basePath + "fix/aicte/book/"; + + $category = $("#fix-tbc-form #edit-category"); $book = $("#fix-tbc-form #edit-book"); @@ -155,6 +158,20 @@ $(document).ready(function() { e.preventDefault(); }); +$Selected = $(".selected"); + $Selected.click(function (e) { + $(".sync-msg").remove(); + $(this).after("<span class='sync-msg'>Saving...</span>"); + $.ajax({ + url: modPath1 + "ajax/selected/" + $(this).attr("data-bid"), + success: function() { + $(".sync-msg").remove(); + console.log ("success"); + } + }); + + }); + /* toggle in edition */ $ind_ed = $(".ind-ed"); diff --git a/js/selection.js b/js/selection.js index 6834aca..6834aca 100644..100755 --- a/js/selection.js +++ b/js/selection.js |