Fix an issue causing duplicate backlinks to be generated

Actually, it caused a lot of issues, but that was a big one.
This commit is contained in:
Zixaphir 2014-03-19 07:38:37 -07:00
parent 07a12bbd2f
commit 3174af1c50
6 changed files with 14 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.9.5 - 2014-03-15
* appchan x - Version 2.9.5 - 2014-03-19
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -25,7 +25,7 @@
// ==/UserScript==
/*
* appchan x - Version 2.9.5 - 2014-03-15
* appchan x - Version 2.9.5 - 2014-03-19
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -16508,7 +16508,9 @@
}
}
}
e.preventDefault();
if (e != null) {
e.preventDefault();
}
return;
}
$.addClass(Index.button, 'fa-spin');
@ -17949,7 +17951,7 @@
});
$.before(styleSelector.previousSibling, [$.tn('['), passLink, $.tn(']\u00A0\u00A0')]);
}
if (!(Conf['JSON Navigation'] && g.VIEW === 'index')) {
if (!Conf['JSON Navigation'] in g.VIEW === 'thread') {
Main.initThread();
} else {
$.event('4chanXInitFinished');

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript
/*
* appchan x - Version 2.9.5 - 2014-03-15
* appchan x - Version 2.9.5 - 2014-03-19
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -16527,7 +16527,9 @@
}
}
}
e.preventDefault();
if (e != null) {
e.preventDefault();
}
return;
}
$.addClass(Index.button, 'fa-spin');
@ -17960,7 +17962,7 @@
});
$.before(styleSelector.previousSibling, [$.tn('['), passLink, $.tn(']\u00A0\u00A0')]);
}
if (!(Conf['JSON Navigation'] && g.VIEW === 'index')) {
if (!Conf['JSON Navigation'] in g.VIEW === 'thread') {
Main.initThread();
} else {
$.event('4chanXInitFinished');

View File

@ -196,7 +196,7 @@ Main =
$.before styleSelector.previousSibling, [$.tn '['; passLink, $.tn ']\u00A0\u00A0']
# Parse HTML or skip it and start building from JSON.
unless Conf['JSON Navigation'] and g.VIEW is 'index'
if !Conf['JSON Navigation'] of g.VIEW is 'thread'
Main.initThread()
else
$.event '4chanXInitFinished'

View File

@ -195,7 +195,7 @@ Navigate =
Index.buildIndex()
else
Index.update()
e.preventDefault()
e?.preventDefault()
return
$.addClass Index.button, 'fa-spin'

View File

@ -190,7 +190,7 @@ Linkify =
embed.dataset.title = title[0]
else
try
$.cache service.api(uid),
$.cache service.api(uid),
-> title = Linkify.cb.title @, data
,
responseType: 'json'