Repository navigation
Dataviewer bugfixes, multisort - #6785
Conversation
|
One minute, need to add a polyfill for |
At some point should we add a build step that consolidates our increasing number of polyfills into a single script to reduce downloads when starting up? |
|
We should definitely add a generic polyfill step like babel core eventually. Unfortunately our setup is so funky (this polyfill for the dataviewer wouldn't be encapsulated in a normal build step because it's iframed in) that making it generic and consistent without a big overhaul will be tricky. |
…ll for IE11 support in same function
| { | ||
| nTr = nTrIn || document.createElement('tr'); | ||
| nTr.setAttribute("data-row", iRow); | ||
| nTr.setAttribute("data-row", iRow + oSettings._iDisplayStart); |
There was a problem hiding this comment.
Found that if you made the window small enough such that it was AJAXing data in constantly the row number would be off here as iRow doesn't encapsulate the data pagination.
|
Found a couple small bugs in the code that I fixed and added the polyfill. This is now ready for review. |
| idx <- cols[[i]] | ||
| if (length(x[[idx]]) > 0) | ||
| { | ||
| if (dirs[[i]] == "asc") |
There was a problem hiding this comment.
Because of R's wonky comparison semantics, use identical(x, y) to compare strings instead of == (for pretty much the same reasons === is generally preferred over == in JS)
There was a problem hiding this comment.
The most famous example:
> x <- NULL
> y <- "foo"
> if (x == y) message("Equality achieved")
Error in if (x == y) message("Equality achieved") :
argument is of length zero
| std::string ordercolstr = "order[" + std::to_string(orderIdx) + "][column]"; | ||
| std::string orderdirstr = "order[" + std::to_string(orderIdx) + "][dir]"; | ||
| ordercol = http::util::fieldValue<int>(fields, ordercolstr, -1); | ||
| orderdir = http::util::fieldValue<std::string>(fields, orderdirstr, "asc"); |
There was a problem hiding this comment.
| orderdir = http::util::fieldValue<std::string>(fields, orderdirstr, "asc"); | |
| orderdir = http::util::fieldValue<std::string>(fields, orderdirstr, "asc"); |
Commit 5d4b8db and 4264064
Fixes #4517
Fixes #3465
Commit ff3e2f8
Fixes #3888
Commit faec964
Fixes #1691