From b9f911222535cb03e98def07e4c94274d15ac483 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Tue, 8 Jul 2014 00:05:19 +0530 Subject: removed modal for _target --- custom.js | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/custom.js b/custom.js index 5858829..b8c01b5 100644 --- a/custom.js +++ b/custom.js @@ -55,13 +55,12 @@ $([IPython.events]).on('notebook_loaded.Notebook', function(){ /* creating the link */ var $link = $(""); + var href = "http://tbc-python.fossee.in/comments/get/?book={0}&chapter={1}&example={2}&page={3}"; + href = href.format(book, chapter_number, example_no, page_no); $link.attr({ - href: "#", + href: href, class: "question", - "data-book": book, - "data-chapter": chapter_number, - "data-example": example_no, - "data-page": page_no, + target: "_blank", }); $(this).prepend($link); count++; @@ -69,27 +68,6 @@ $([IPython.events]).on('notebook_loaded.Notebook', function(){ return; } }); - - /* appending modal skeleton */ - var $comment_modal = $("
"); - $("#site").append($comment_modal); - - $(".question").on("click", function() { - $comment_frame = $(""); - var book = $(this).data("book"); - var chapter = $(this).data("chapter"); - var example = $(this).data("example"); - var page = $(this).data("page"); - var src = "http://tbc-python.fossee.in/comments/get/?book={0}&chapter={1}&example={2}&page={3}"; - src = src.format(book, chapter, example, page); - $comment_frame.attr({ - class: "comment-frame", - src: src, - }); - $comment_modal.find(".modal-body").html($comment_frame); - $comment_modal.modal("show"); - }); - }); /* hiding running/clusters links */ -- cgit