New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ui: Invoke the createTable function regardless of response #213
Conversation
Codecov Report
@@ Coverage Diff @@
## master #213 +/- ##
=======================================
Coverage 45.45% 45.45%
=======================================
Files 3 3
Lines 77 77
=======================================
Hits 35 35
Misses 42 42 Continue to review full report at Codecov.
|
ores/wsgi/static/js/scorer.js
Outdated
@@ -79,14 +79,14 @@ function getResults() { | |||
}); | |||
models_url = models_url.slice(0, -1); | |||
var url = "/scores/" + $('#wikiDropDownInput').attr('value') + "/?models=" + models_url + "&revids=" + revs; | |||
$.get(url, function (data) { | |||
$.get(url, datatype='jsonp').always(function(data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not e.g. /* datatype= */ 'jsonp'
to avoid creating unused variable? 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
There's a rendering issue where it seems the error pane isn't fully removed after an error occurs and a new revid is scored. Not sure if it is related to this specific change or not. Steps reproduce:
|
@halfak fixed. It's way cleaner now |
ores/wsgi/static/js/scorer.js
Outdated
} | ||
$('#tableContainer').remove(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maybe you want to clear the children -- not remove the container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, Let me see what I can do about it.
This one basically cleans everything and replace new one instead
Bug: T149118