Merge branch 'v3'
Conflicts: CHANGELOG.md
This commit is contained in:
commit
34dd4ba96a
@ -1,3 +1,11 @@
|
|||||||
|
**Zixaphir**:
|
||||||
|
- Rewrote "Scroll to post quoting you" functionality, solving several small issues with it.
|
||||||
|
- Improved Linkifier link detection.
|
||||||
|
- Fixed an issue with Thread Updater intervals not saving correctly.
|
||||||
|
- Added Oneechan's Backlink Icons features.
|
||||||
|
- Added an option to shrink file information text.
|
||||||
|
- Small performance improvements.
|
||||||
|
|
||||||
### v2.9.7
|
### v2.9.7
|
||||||
*2014-03-20*
|
*2014-03-20*
|
||||||
|
|
||||||
|
|||||||
@ -7661,7 +7661,7 @@
|
|||||||
len = posts.length - 1;
|
len = posts.length - 1;
|
||||||
index = i = posts.indexOf(post);
|
index = i = posts.indexOf(post);
|
||||||
while (true) {
|
while (true) {
|
||||||
if (index === (i = i === 0 ? len : i === len ? 0 : type === 'prev' ? i - 1 : i + 1)) {
|
if (index === (i = type === 'prev' ? i === 0 ? len : i - 1 : i === len ? 0 : i + 1)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
post = posts[i];
|
post = posts[i];
|
||||||
|
|||||||
@ -3096,9 +3096,7 @@
|
|||||||
Callbacks.prototype.execute = function(nodes) {
|
Callbacks.prototype.execute = function(nodes) {
|
||||||
var cb, err, errors, i, j, name, node;
|
var cb, err, errors, i, j, name, node;
|
||||||
i = 0;
|
i = 0;
|
||||||
c.time("Features");
|
|
||||||
while (name = this.keys[i++]) {
|
while (name = this.keys[i++]) {
|
||||||
c.time(name);
|
|
||||||
j = 0;
|
j = 0;
|
||||||
cb = this[name];
|
cb = this[name];
|
||||||
while (node = nodes[j++]) {
|
while (node = nodes[j++]) {
|
||||||
@ -3117,9 +3115,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c.timeEnd(name);
|
|
||||||
}
|
}
|
||||||
c.timeEnd("Features");
|
|
||||||
if (errors) {
|
if (errors) {
|
||||||
return Main.handleErrors(errors);
|
return Main.handleErrors(errors);
|
||||||
}
|
}
|
||||||
@ -3872,15 +3868,12 @@
|
|||||||
var boardID, keys, now, _i, _len;
|
var boardID, keys, now, _i, _len;
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
if ((this.data.lastChecked || 0) > now - 2 * $.HOUR) {
|
if ((this.data.lastChecked || 0) > now - 2 * $.HOUR) {
|
||||||
c.log('return now');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
keys = Object.keys(this.data.boards);
|
keys = Object.keys(this.data.boards);
|
||||||
if (!keys.length) {
|
if (!keys.length) {
|
||||||
c.log('return empty');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
c.log('no return');
|
|
||||||
for (_i = 0, _len = keys.length; _i < _len; _i++) {
|
for (_i = 0, _len = keys.length; _i < _len; _i++) {
|
||||||
boardID = keys[_i];
|
boardID = keys[_i];
|
||||||
this.deleteIfEmpty({
|
this.deleteIfEmpty({
|
||||||
@ -5460,7 +5453,6 @@
|
|||||||
return Index.scrollToIndex();
|
return Index.scrollToIndex();
|
||||||
},
|
},
|
||||||
parse: function(pages, pageNum) {
|
parse: function(pages, pageNum) {
|
||||||
c.time("Generating Index");
|
|
||||||
Index.parseThreadList(pages);
|
Index.parseThreadList(pages);
|
||||||
Index.buildThreads();
|
Index.buildThreads();
|
||||||
Index.sort();
|
Index.sort();
|
||||||
@ -5468,8 +5460,7 @@
|
|||||||
Index.pageNav(pageNum);
|
Index.pageNav(pageNum);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Index.buildIndex();
|
return Index.buildIndex();
|
||||||
c.timeEnd("Generating Index");
|
|
||||||
},
|
},
|
||||||
parseThreadList: function(pages) {
|
parseThreadList: function(pages) {
|
||||||
var i, j, live, page, thread, threads;
|
var i, j, live, page, thread, threads;
|
||||||
@ -7723,7 +7714,7 @@
|
|||||||
len = posts.length - 1;
|
len = posts.length - 1;
|
||||||
index = i = posts.indexOf(post);
|
index = i = posts.indexOf(post);
|
||||||
while (true) {
|
while (true) {
|
||||||
if (index === (i = i === 0 ? len : i === len ? 0 : type === 'prev' ? i - 1 : i + 1)) {
|
if (index === (i = type === 'prev' ? i === 0 ? len : i - 1 : i === len ? 0 : i + 1)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
post = posts[i];
|
post = posts[i];
|
||||||
|
|||||||
@ -66,12 +66,13 @@ QuoteMarkers =
|
|||||||
index = i = posts.indexOf post
|
index = i = posts.indexOf post
|
||||||
while true
|
while true
|
||||||
break if index is (
|
break if index is (
|
||||||
i = if i is 0
|
i = if type is 'prev'
|
||||||
len
|
if i is 0
|
||||||
|
len
|
||||||
|
else
|
||||||
|
i - 1
|
||||||
else if i is len
|
else if i is len
|
||||||
0
|
0
|
||||||
else if type is 'prev'
|
|
||||||
i - 1
|
|
||||||
else
|
else
|
||||||
i + 1
|
i + 1
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user