Skip to content
Snippets Groups Projects
Commit bca91037 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 b4284f85
No related branches found
No related tags found
2 merge requests!919Development,!918Es fehlte der JQuery getter für den aktiven Tab
......@@ -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();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment