summaryrefslogtreecommitdiffstats
path: root/static/functions/browse.js
diff options
context:
space:
mode:
authorGit <git@what.cd>2013-01-09 08:00:34 +0000
committerGit <git@what.cd>2013-01-09 08:00:34 +0000
commitba15532e941c267a69b662937a955a0f91898ab8 (patch)
treecf082f1fe3d643a9e25fc697604e3b77aeab89ed /static/functions/browse.js
parentf784d42038e830b70e548593e222b0920a05a615 (diff)
downloadGazelle-ba15532e941c267a69b662937a955a0f91898ab8.zip
Gazelle-ba15532e941c267a69b662937a955a0f91898ab8.tar.gz
Gazelle-ba15532e941c267a69b662937a955a0f91898ab8.tar.bz2
Empty commit
Diffstat (limited to 'static/functions/browse.js')
-rw-r--r--static/functions/browse.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/static/functions/browse.js b/static/functions/browse.js
index ea6b8c4..51a16b5 100644
--- a/static/functions/browse.js
+++ b/static/functions/browse.js
@@ -17,7 +17,6 @@ function show_peers (TorrentID, Page) {
$('#downloads_' + TorrentID).hide();
$('#files_' + TorrentID).hide();
$('#reported_' + TorrentID).hide();
- $('#spectrals_' + TorrentID).hide();
}
function show_snatches (TorrentID, Page){
@@ -39,7 +38,6 @@ function show_snatches (TorrentID, Page){
$('#downloads_' + TorrentID).hide();
$('#files_' + TorrentID).hide();
$('#reported_' + TorrentID).hide();
- $('#spectrals_' + TorrentID).hide();
}
function show_downloads (TorrentID, Page){
@@ -61,7 +59,6 @@ function show_downloads (TorrentID, Page){
$('#snatches_' + TorrentID).hide();
$('#files_' + TorrentID).hide();
$('#reported_' + TorrentID).hide();
- $('#spectrals_' + TorrentID).hide();
}
function show_files(TorrentID){
@@ -70,7 +67,6 @@ function show_files(TorrentID){
$('#snatches_' + TorrentID).hide();
$('#downloads_' + TorrentID).hide();
$('#reported_' + TorrentID).hide();
- $('#spectrals_' + TorrentID).hide();
}
function show_reported(TorrentID){
@@ -79,33 +75,6 @@ function show_reported(TorrentID){
$('#snatches_' + TorrentID).hide();
$('#downloads_' + TorrentID).hide();
$('#reported_' + TorrentID).toggle();
- $('#spectrals_' + TorrentID).hide();
-}
-
-function show_spectrals (TorrentID){
- $('#snatches_' + TorrentID).hide();
- $('#peers_' + TorrentID).hide();
- $('#downloads_' + TorrentID).hide();
- $('#files_' + TorrentID).hide();
- $('#reported_' + TorrentID).hide();
-
- $('#spectrals_' + TorrentID).toggle();
- ajax.get('http://archive.org/~abuie/spectral.php?q=' + TorrentID,function(response){
- var json = JSON.parse(response);
- html = "<br /> <strong>Loading...</strong>"
- $('#spectrals_' + TorrentID).show().raw().innerHTML=html;
- if(json['status']['state'] == 'success') {
- for (var i = 0; i < json['count']; i++) {
- html += "<img src='" + json['files'][i] + "' alt='" + json['files'][i] + "' style='max-width:440px;' onclick='lightbox.init(\""+json['files'][i] + "\", 440);'></a>";
- html += "<br /> <br />";
- }
- }
- else {
- html = "<br /> <strong>Error: " + json['status']['reason'] + "</strong>"
- }
- $('#spectrals_' + TorrentID).show().raw().innerHTML=html;
- });
-
}
function add_tag(tag) {