diff options
author | Jayaram R Pai | 2014-08-12 12:27:33 +0530 |
---|---|---|
committer | prashantsinalkar | 2019-09-01 22:12:25 +0530 |
commit | 6ea7167991f5c9a8c87fffbda8a8513e965f15b0 (patch) | |
tree | 7ab867b569def9707874732638a2ac0b09d2d913 /js | |
parent | b05847459755de88ad638973d4f351883fd00d51 (diff) | |
download | r_tbc_fixer-6ea7167991f5c9a8c87fffbda8a8513e965f15b0.tar.gz r_tbc_fixer-6ea7167991f5c9a8c87fffbda8a8513e965f15b0.tar.bz2 r_tbc_fixer-6ea7167991f5c9a8c87fffbda8a8513e965f15b0.zip |
added page to mark indian edition aicte books
Diffstat (limited to 'js')
-rw-r--r-- | js/scilab_fixer.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/js/scilab_fixer.js b/js/scilab_fixer.js index 9148603..b48832e 100644 --- a/js/scilab_fixer.js +++ b/js/scilab_fixer.js @@ -154,4 +154,30 @@ $(document).ready(function() { } e.preventDefault(); }); + + /* toggle in edition */ + $ind_ed = $(".ind-ed"); + + $ind_ed.click(function(e) { + var aicte_id = $(this).attr("data-aicte"); + $t = $(this); + $.ajax({ + url: modPath + "ajax/ind-ed/" + aicte_id, + type: "GET", + dataType: "html", + success: function(data) { + $tr = $t.parents("tr:first"); + if($tr.hasClass("orange")) { + $t.parents("tr:first").removeClass("orange"); + $t.html("Mark"); + } else { + $t.parents("tr:first").addClass("orange"); + $t.html("Unmark"); + } + console.log(data); + }, + }); + e.preventDefault(); + }); + }); |