summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorprashantsinalkar2019-08-31 15:31:32 +0530
committerprashantsinalkar2019-09-01 22:13:11 +0530
commit9079093f5ace76555b15e613ca9b8e473aa8461d (patch)
tree4be26647f2f091f80a2c71854efaf59ec12d6980 /js
parent8d3bed544de846f7df096ab4e1a5c930522f7855 (diff)
downloadr_tbc_fixer-9079093f5ace76555b15e613ca9b8e473aa8461d.tar.gz
r_tbc_fixer-9079093f5ace76555b15e613ca9b8e473aa8461d.tar.bz2
r_tbc_fixer-9079093f5ace76555b15e613ca9b8e473aa8461d.zip
updated the code for R TBC
Diffstat (limited to 'js')
-rwxr-xr-xjs/r_tbc_fixer.js (renamed from js/textbook_companion_fixer.js)35
-rwxr-xr-x[-rw-r--r--]js/r_tbc_fixer_edit_category.js (renamed from js/textbook_companion_fixer_edit_category.js)0
2 files changed, 1 insertions, 34 deletions
diff --git a/js/textbook_companion_fixer.js b/js/r_tbc_fixer.js
index b655b05..dbb20d7 100755
--- a/js/textbook_companion_fixer.js
+++ b/js/r_tbc_fixer.js
@@ -1,7 +1,7 @@
(function($) {
$(document).ready(function() {
var basePath = Drupal.settings.basePath;
- var modPath = basePath + "textbook_companion_fixer/";
+ var modPath = basePath + "r_tbc_fixer/";
var modPath1 = basePath + "textbook_companion_fixer/aicte/book/";
$category = $("#fix-tbc-form #edit-category");
$book = $("#fix-tbc-form #edit-book");
@@ -42,39 +42,6 @@
$(".example-code-edit").hide();
$(".well").hide();
$(".update-button").hide();
- $category.change(function() {
- reset("book", "chapter", "example", "caption");
- var category_id = $(this).val();
- if (category_id < 1) {
- $(".select-book").hide();
- $(".select-chapter").hide();
- $(".enter-chapter-name").hide();
- $(".select-example").hide();
- $(".enter-caption").hide();
- $(".chapter-example-chk").hide();
- $(".example-code-edit").hide();
- (".well").hide();
- $(".update-button").hide();
- } else {
- $(".select-book").show();
- $(".select-chapter").hide();
- $(".enter-chapter-name").hide();
- $(".chapter-example-chk").hide();
- $(".select-example").hide();
- $(".enter-caption").hide();
- $(".example-code-edit").hide();
- $(".well").hide();
- $(".update-button").hide();
- }
- $.ajax({
- url: modPath + "ajax/category/" + category_id,
- type: "POST",
- dataType: "html",
- success: function(data) {
- $book.html(data);
- }
- });
- });
$book.change(function() {
reset("chapter", "example", "caption");
var book_id = $(this).val();
diff --git a/js/textbook_companion_fixer_edit_category.js b/js/r_tbc_fixer_edit_category.js
index bad5ec7..bad5ec7 100644..100755
--- a/js/textbook_companion_fixer_edit_category.js
+++ b/js/r_tbc_fixer_edit_category.js