Remove all the now-irrelevant debug stuff
This commit is contained in:
parent
d6fffba65d
commit
654fd5edc0
|
|
@ -96,9 +96,7 @@ foreach ( $files as $file ) {
|
||||||
$images[] = $comicoutputurl . $file;
|
$images[] = $comicoutputurl . $file;
|
||||||
$captions[] = substr(basename($comicoutputurl), 0, -4) . ": {$count} of {$last}";
|
$captions[] = substr(basename($comicoutputurl), 0, -4) . ": {$count} of {$last}";
|
||||||
}
|
}
|
||||||
$debug = (DEBUG_SHOWCOMICAJAX || DEBUG_ALL);
|
|
||||||
|
|
||||||
$data["debug"] = $debug;
|
|
||||||
$data["images"] = $images;
|
$data["images"] = $images;
|
||||||
$data["captions"] = $captions;
|
$data["captions"] = $captions;
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,2 @@
|
||||||
<div id='debug' class='debug'></div>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -194,8 +194,7 @@ function updateCurrentPage() {
|
||||||
// This JS function is called when a user clicks on a comic.
|
// This JS function is called when a user clicks on a comic.
|
||||||
// "showcomic.php" is called with the comic to view as a parameter.
|
// "showcomic.php" is called with the comic to view as a parameter.
|
||||||
// It returns a JSON object representing the collection of images.
|
// It returns a JSON object representing the collection of images.
|
||||||
// If in debug mode the javascript code is displayed in the browser.
|
// A lightbox/modal object is created to display the comic.
|
||||||
// If not in debug mode a lightbox object is created to display the comic.
|
|
||||||
//
|
//
|
||||||
function showComic(comic, name) {
|
function showComic(comic, name) {
|
||||||
toastr.success("Extracting comic and opening viewer...", "Showing: " + name);
|
toastr.success("Extracting comic and opening viewer...", "Showing: " + name);
|
||||||
|
|
@ -208,8 +207,6 @@ function showComic(comic, name) {
|
||||||
redirectToLogin();
|
redirectToLogin();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Clear out the debug DIV and start the fancybox.
|
|
||||||
$("#debug").html("");
|
|
||||||
lightbox = SimpleLightbox.open({
|
lightbox = SimpleLightbox.open({
|
||||||
items: data.images,
|
items: data.images,
|
||||||
captions: data.captions,
|
captions: data.captions,
|
||||||
|
|
|
||||||
|
|
@ -37,13 +37,6 @@ define('DBUSER', 'comics');
|
||||||
define('DBPASS', 'comics');
|
define('DBPASS', 'comics');
|
||||||
define('DBNAME', '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
|
// Constants
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user