mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Get rid of ListBox.last
This commit is contained in:
@@ -321,7 +321,7 @@ function Dequeue() {
|
||||
game.queue.shift();
|
||||
if (a == 'plot') {
|
||||
CompleteAct();
|
||||
s = 'Loading ' + Plots.last().text();
|
||||
s = 'Loading ' + game.bestplot;
|
||||
}
|
||||
Task(s, n * 1000);
|
||||
} else {
|
||||
@@ -473,10 +473,6 @@ function ListBox(id, columns, fixedkeys) {
|
||||
return result;
|
||||
};
|
||||
|
||||
this.last = function () {
|
||||
return this.rows().last();
|
||||
};
|
||||
|
||||
this.scrollToTop = function () {
|
||||
this.box.parents(".scroll").scrollTop(0);
|
||||
};
|
||||
@@ -641,7 +637,7 @@ function WinItem() {
|
||||
function CompleteQuest() {
|
||||
QuestBar.reset(50 + RandomLow(1000));
|
||||
if (Quests.length()) {
|
||||
Log('Quest completed: ' + Quests.last().text());
|
||||
Log('Quest completed: ' + game.bestquest);
|
||||
Quests.rows().find("input:checkbox").attr("checked", "true");
|
||||
[WinSpell,WinEquip,WinStat,WinItem][Random(4)]();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user