summaryrefslogtreecommitdiffstats
path: root/media/archweb.js
AgeCommit message (Collapse)AuthorFilesLines
2011-10-27Prettify filesizes in package visualization chartDan McGee1-0/+17
Add a general purpose formatter and mark up each value function with an 'is_size' attribute so we can add additional display formatting if asked for. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-30Slight rework of package size sort functionDan McGee1-12/+11
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-30JSLint suggested cleanupsDan McGee1-14/+35
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-05-02Ensure we can handle all values in file size columnsDan McGee1-1/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-05-02Add filesizeformat filter to sizes in reports/bigEvangelos Foutras1-0/+27
We also add a new 'filesize' tablesorter parser that handles all the suffixes found in django's filesizeformat filter. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-21Fix news preview with CSRF and AJAX in Django 1.2.5Dan McGee1-6/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-01Fix JS date parsing sort helperDan McGee1-3/+6
How could I ever forget the awesomeness that is the JS date constructor that takes a month value between 0-11, not 1-12. Total insanity. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-18Small JS clarification for finding table cellDan McGee1-1/+1
Although it happened to be the parent element in this case, we are really just looking for the containing cell. Change the call to closest so we are future-proofed. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-18Make package signoffs AJAX if JS is enabledDan McGee1-0/+23
This makes the signoffs page a heck of a lot more usable as you can go through and click a bunch at once without waiting for the rather slow page to reload. Hopefully the first step to bringing life back into this part of the site. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-15Use more efficient updateCell event after todo list clickDan McGee1-2/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-14Update tablesorter cache after clicking todo list statusDan McGee1-1/+4
We didn't update this before, so sorting the last after checking off a few todos didn't work right, as it was using the old values. Fix it by adding a call to update; this can eventually be changed to the updateCell call commented out once I upgrade the minified tablesorter.js file. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-14Fix JS null error when parsing non-matching dateDan McGee1-8/+8
We didn't escape early with some value, causing an invalid dereference. While fixing this, also touch up the other functions and move a few more thngs to parser dictionary attributes. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-09Convert function expressions to declarationsDan McGee1-6/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-09gjslint recommended javascript cleanupsDan McGee1-26/+28
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-09Add a long datetime parser to table sorting codeDan McGee1-3/+19
This comes into play on our new developer clocks page, where the last column was not sorting at all as expected. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-26Make package differences JS a bit more efficientDan McGee1-14/+20
Use an id-based selector so we can get the necessary table rows to filter a lot more quickly than a lengthy CSS selector. Also use traversal rather than selectors when grabbing the package versions. This looked like a 3x-4x increase in speed while testing locally. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-21Package differences small updatesDan McGee1-1/+1
* Add 'multilib-testing' to the CSS class list to hide for [multilib] * Select 'Only In Both' by default, which is probably the most useful option * Unselect 'Minor Version Mismatches' by default Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30Move most inline JS into script fileDan McGee1-0/+130
We're getting to the point where we are starting to have a good chunk of JS scattered about. Centralize a lot of it for maintenance and performance purposes. Signed-off-by: Dan McGee <dan@archlinux.org>