diff --git a/ajax/showcomic.php b/ajax/showcomic.php index 4ebe149..adb8a07 100644 --- a/ajax/showcomic.php +++ b/ajax/showcomic.php @@ -96,9 +96,7 @@ foreach ( $files as $file ) { $images[] = $comicoutputurl . $file; $captions[] = substr(basename($comicoutputurl), 0, -4) . ": {$count} of {$last}"; } -$debug = (DEBUG_SHOWCOMICAJAX || DEBUG_ALL); -$data["debug"] = $debug; $data["images"] = $images; $data["captions"] = $captions; header('Content-Type: application/json'); diff --git a/htmlfooter.php b/htmlfooter.php index 01fbaca..308b1d0 100644 --- a/htmlfooter.php +++ b/htmlfooter.php @@ -1,4 +1,2 @@ -
- diff --git a/js/comics.js b/js/comics.js index b0326f1..10ce758 100644 --- a/js/comics.js +++ b/js/comics.js @@ -194,8 +194,7 @@ function updateCurrentPage() { // This JS function is called when a user clicks on a comic. // "showcomic.php" is called with the comic to view as a parameter. // It returns a JSON object representing the collection of images. -// If in debug mode the javascript code is displayed in the browser. -// If not in debug mode a lightbox object is created to display the comic. +// A lightbox/modal object is created to display the comic. // function showComic(comic, name) { toastr.success("Extracting comic and opening viewer...", "Showing: " + name); @@ -208,8 +207,6 @@ function showComic(comic, name) { redirectToLogin(); return; } - // Clear out the debug DIV and start the fancybox. - $("#debug").html(""); lightbox = SimpleLightbox.open({ items: data.images, captions: data.captions, diff --git a/variables-dist.php b/variables-dist.php index d318d1e..6f479d4 100644 --- a/variables-dist.php +++ b/variables-dist.php @@ -37,13 +37,6 @@ define('DBUSER', 'comics'); define('DBPASS', 'comics'); define('DBNAME', 'comics'); -// -// These are some variables used for development and debugging. -// They can be safely ignored. -// -define('DEBUG_ALL', false); -define('DEBUG_SHOWCOMICAJAX', false); - // // Constants //