Commit 183146e2 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '524-bug-beim-speichern-von-ergebnissen' into 'development'

Es fehlte der JQuery getter für den aktiven Tab

Closes #524

See merge request !918
parents e6e8b624 24c8da98
......@@ -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