Permalink
Browse files

fixed "ignore feature"

- after the namespace refactoring, some of the more hidden dynamic function calls were not updated
- the "ignore URL"-feature was not working because frontend code still referenced the old interface
  • Loading branch information...
homecoded committed Jun 8, 2013
1 parent 0014a06 commit 396420360724aaf5c9b402375452221c883d5b82
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/js/resultview.js
  2. +1 −1 src/js/sucodo.js
View
@@ -112,7 +112,7 @@ Sucodo.ResultView = (function () {
divId = 'source_' + i;
gnoreLinkId = 'ignore_' + i;
ignoreLink = "resultview.ignoreUrl('"+(url)+"', "+i+")";
ignoreLink = "Sucodo.ResultView.ignoreUrl('"+(url)+"', "+i+")";
ignoreClass = '';
ignoreText = '';
if (Sucodo.TextAnalyzer.isIgnoredSource(url)) {
@@ -141,7 +141,7 @@ Sucodo.ResultView = (function () {
methodName = 'showAll';
}
sourcesView.append('<div class="toggleSources"><a href="javascript:resultview.'+methodName+'()">'+ textShowSources +'</a></div>');
sourcesView.append('<div class="toggleSources"><a href="javascript:Sucodo.ResultView.'+methodName+'()">'+ textShowSources +'</a></div>');
if (numSourcesToShow > 0) {
sourcesView.show();
View
@@ -214,7 +214,7 @@ Sucodo.Navi = {
resultText = Sucodo.TextMarkup.markup(Sucodo.TextAnalyzer.getPhrases(), Sucodo.TextAnalyzer.getResult());
$('#textview').html(resultText);
Sucodo.TextMarkup.updateMouseInteractivity();
Sucodo.ResultView.show(resultview.areAllSourcesShown());
Sucodo.ResultView.show(Sucodo.ResultView.areAllSourcesShown());
return isIgnored;
}
};

0 comments on commit 3964203

Please sign in to comment.