Commit 24c8da98 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Es fehlte der JQuery getter für den aktiven Tab

Dadurch gab es bei mehreren geladenen Tabs auch mehrere Ergebnisse mit dem Attribut data-count=x
Nun wird immer das Ergebnis aus dem aktiven Tab ausgewählt.
parent e2397351
......@@ -521,17 +521,17 @@ function initialLoadContent (fokus) {
}
function resultSaver(index) {
var title = $(".result[data-count=" + index + "] a.title").html();
var link = $(".result[data-count=" + index + "] a.title").attr("href");
var anzeigeLink = $(".result[data-count=" + index + "] div.link-link > a").html();
var gefVon = $(".result[data-count=" + index + "] span.hoster").html();
var hoster = $(".result[data-count=" + index + "] a.title").attr("data-hoster");
var anonym = $(".result[data-count=" + index + "] a.proxy").attr("href");
var description = $(".result[data-count=" + index + "] div.description").html();
var color = $(".result[data-count=" + index + "] div.number").css("color");
var rank = parseFloat($(".result[data-count=" + index + "]").attr("data-rank"));
var title = $("div.tab-pane.active .result[data-count=" + index + "] a.title").html();
var link = $("div.tab-pane.active .result[data-count=" + index + "] a.title").attr("href");
var anzeigeLink = $("div.tab-pane.active .result[data-count=" + index + "] div.link-link > a").html();
var gefVon = $("div.tab-pane.active .result[data-count=" + index + "] span.hoster").html();
var hoster = $("div.tab-pane.active .result[data-count=" + index + "] a.title").attr("data-hoster");
var anonym = $("div.tab-pane.active .result[data-count=" + index + "] a.proxy").attr("href");
var description = $("div.tab-pane.active .result[data-count=" + index + "] div.description").html();
var color = $("div.tab-pane.active .result[data-count=" + index + "] div.number").css("color");
var rank = parseFloat($("div.tab-pane.active .result[data-count=" + index + "]").attr("data-rank"));
new Result(title, link, anzeigeLink, gefVon, hoster, anonym, description, color, rank, undefined);
var to = $("#savedFokiTabSelector").length ? $("#savedFokiTabSelector") : $("#foki");
$(".result[data-count=" + index + "]").transfer({to: to, duration: 1000});
$("div.tab-pane.active .result[data-count=" + index + "]").transfer({to: to, duration: 1000});
new Results().updateResultPageInterface();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment