summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2015-09-27Replace copy-pasted pomf.js errors with constantsJuuso Lapinlampi
Introduces client-side UPLOAD_ERR_MAX_SIZE and UPLOAD_ERR_FAILED constants. This reduces code duplication, which means less code smell.
2015-09-27Remove misleading comment and simplify pomf.js case 413Juuso Lapinlampi
There appears to be no such thing as a terrible scary bug that needs a workaround in my Chromium 45.0.2454.85 browser to encode &hellip;. The unobvious self-closing <div/> is also very questionable. For what it's worth, &hellip; will encode correctly as long as you use jQuery's .html() method – which it already did anyway. OK ewhal@
2015-09-27Merge branch 'grabbing-urls-hellip' of WubTheCaptain/pomfJuuso Lapinlampi
OK ewhal@
2015-09-27Fix typography on "Grabbing URLs..." with &hellip;Juuso Lapinlampi
This change may seem very subtle, but many screen readers will actually behave differently. Before this commit, a screenreader like JAWS may read "Grabbing URLs dot dot dot". After this commit, JAWS may read "Grabbing URLs" and pauses for a little longer. Reference: http://www.deque.com/blog/dont-screen-readers-read-whats-scre en-part-1-punctuation-typographic-symbols/
2015-09-27Add Pantsu.cat copyright to js/pomf.jsJuuso Lapinlampi
This compliments commit 7dca38c.
2015-09-26Use cached totalName instead of $('.file-name', totalRow)Juuso Lapinlampi
This cleans up a little bit of smelly code, which came from a copy-paste job.
2015-09-24Add extra whitespace for var uploadBtn in pomf.jsJuuso Lapinlampi
This is not how it appeared in the initial commit 1792788f5f, but personally I like it and style guides allow me to adjust the whitespace for these kind of variables. Improves readability.
2015-09-24Add an extra whitespace for rowUrl in pomf.jsJuuso Lapinlampi
Improves readability by indenting these variables to same level. Restores whitespace style like in initial commit 1792788f5f.
2015-09-24Fix indentation to 2 spaces.Eliot Whalan
2015-09-24Addition symbol prevented urls from being passedEliot Whalan
Fix bug introduced in 6c82d36307.
2015-09-23Add Expat copyright headers to JavaScript filesJuuso Lapinlampi
2015-09-20Remove commented code about Mozilla's file inputWubTheCaptain
This code doesn't seem to be in use nor important. There is no good reason why this was left in here. Because it's not been in use for so long and nobody has an issue with it, let's just remove it.
2015-09-20Simplify multiple ifs to one if with OR conditionWubTheCaptain
2015-09-20Clean up cheesesteak.js and cabinet.js for JSHintWubTheCaptain
Adds curly braces and semicolons. Also change indentation to two spaces.
2015-09-20Add JSHint headers to cabinet and cheesesteakWubTheCaptain
2015-09-20Wrap long lines to 80 characters in lengthWubTheCaptain
String concatenation is used because line terminating characters are not allowed in the ECMAScript spec. Certain style guides such as Airbnb also endorse using string concatenation.
2015-09-20Use singlequotesWubTheCaptain
Both Google and Node.js style guides prefer the use of ' over ". Much of the rest of this code also uses singlequotes, so this brings the rest of it to same level of consistency.
2015-09-20Align link attr indentationWubTheCaptain
2015-09-20Add semicolons to JavaScript sourceWubTheCaptain
The npm style guide is bad. Don't use it! The lack of semicolons can create very subtle bugs that are hard to debug. This commit fixes about a hundred JSHint warnings.
2015-09-20Hand align variables to same indentationWubTheCaptain
2015-09-20JSBeautify with few hand adjustmentsWubTheCaptain
This fixes another npm style guide idiom, which is "comma first".
2015-09-20Add JSHint headerWubTheCaptain
2015-09-20Change JS indentation from tabs to two spacesWubTheCaptain
Airbnb, Google, npm, Node.js and Idiomatic style guides suggest to use two spaces for indentation. It seems to be the widely agreed consensus.
2015-09-19Decode &hellip; correctly when the file is too bigWubTheCaptain
2015-09-18Revert ShareX / URL change commitsWubTheCaptain
These commits are ShareX issues, not Pomf issues. Allowing these commits to be in the source reduces maintainability. This reverts commits bbcffe8d745937677352edf25e6a250ca8fd507b, 943e7e62a8ca814d47168bcebf2cc92dbce9a45a and partially 1411bce1dc13bf6fea66b5899ba29d50d5c53bb0.
2015-09-17Fix to work with sharexpantsucat
2015-09-15Fixed accessibility issue with a link on faq and removed hardcoded 120MB valuepantsucat
2015-09-15Full git history nowpantsucat
2015-06-24pass full url back to clientKieran Harkin
2015-02-05Minify output HTML codecenci0
- Minify HTML pages (using `grunt-contrib-htmlmin`) - Fix minor display error (force encode of HTML entity)
2014-05-06Add comma to object (Fixes uglify bug)Peter Lejeck
2014-04-29Genericize defaults function into merge utilityPeter Lejeck
We're gonna use this shortly for the data field
2013-10-31Move JS into js/, replace with uncompressedPeter Lejeck