ziahamza
d6e1279cfb
Merge pull request #23 from dannywarren/misc_js_syntax_fixes
...
fixing misc javascript syntax errors
2012-09-04 21:26:10 -07:00
Danny Warren
4035d5cf10
fixing misc javascript syntax errors
...
* these are nitpicky things that some browsers just step right over silently, and others halt script execution for
* the jquery trim function only works on variables that have been returned as jquery objects, so doing "'foo'.trim()" doesn't work, should be "$.trim('foo')"
* some javascript interpreters (annoyingly) can't handle trailing commas in lists
2012-09-04 17:24:09 -07:00
Danny Warren
b025ef3355
fixed websocket fallback for browsers that don't support websocket
...
* repro: open webui-aria2 in any browser that doesn't have native websocket support in its javascript library (example: Opera 12.01, IE9), and none of the functionality in webui-aria2 will work due to javascript errors
* see: http://en.wikipedia.org/wiki/WebSocket#Browser_support (Note that Firefox has websocket support, but calls its object "MozWebSocket" instead of "WebSocket", so this issue applies there too)
* there were a few places in script.js that check for websocket support by doing something like "if(WebSocket)" to see if the WebSocket object exists
* javascript doesn't handle undefined variables that way, the interpreter will actually throw an "undefined variable" error and stop execution of the script
* this means that any browser that doesn't have websocket support can never reach the fallback json call code
* added a new variable "web_sock_support" that does a proper "undefined" check, and is set to "1" if the "WebSocket" object is available in the browser
* changed the websocket checks to use the "web_sock_support" variable
2012-09-04 16:30:55 -07:00
hamza zia
6f300f9c09
split the uris by space or new line for new download
2012-08-27 19:18:47 +08:00
hamza zia
76299e6b1f
incorrect form submission bug fixed
2012-08-27 19:12:50 +08:00
hamza zia
4d606f6d14
refined add new download
2012-08-27 14:12:52 +08:00
hamza zia
b0881e8262
changed session cookies to presistant cookies
2012-08-25 18:58:17 +08:00
hamza zia
104580ff4e
updated the default host placeholder
2012-08-25 01:44:34 +08:00
Hamza Zia
91a2cc7ef0
chunk progress bar refined, peer info for torrents added
2012-08-05 04:08:08 +08:00
Hamza Zia
34dd757841
vim typo file removed. sooo annoying!!
2012-08-05 02:39:26 +08:00
Hamza Zia
04823ecfd1
chunk progress bar replaced with canvas implementation, global download graph also added
2012-08-05 02:37:25 +08:00
Hamza Zia
ed3e32a5ec
improved performance of chunk progress bars and now stable to use!
2012-08-02 20:47:01 +08:00
Hamza Zia
bebf4e7741
unstable commit for a new and smart algorithm for piece progress bar, not usable,
2012-08-02 11:42:03 +08:00
Hamza Zia
72208fe579
chunked progress bar added!, somewhat experimental and very unstable (slow) for large download pieces
2012-08-02 03:08:41 +08:00
Hamza
36dfb82ff4
polished graphs for downloads with upload graphs merged in!!!
2012-08-01 23:59:12 +08:00
Hamza
3cdfeb9a50
minor graph updates
2012-08-01 21:06:25 +08:00
Hamza Zia
98cb53b3ba
experimental but unstable graph support
2012-08-01 18:44:20 +08:00
Hamza Zia
3df40af495
cookie bug fixed
2012-07-15 19:22:02 -07:00
Hamza Zia
37e6a48230
name from path bug fixed
2012-07-05 08:28:29 -07:00
Hamza Zia
53d1999fc4
ui updates for small resolution and mobile devices
2012-07-04 14:53:45 +08:00
Hamza Zia
911c927056
hostname bug
2012-07-03 04:47:04 -07:00
Hamza Zia
4aebd01c83
server host used by default
2012-07-02 08:15:39 -07:00
Hamza Zia
a9fbb8a148
added initial cookie support
2012-07-02 01:16:10 -07:00
Hamza Zia
00f990d873
small typos
2012-06-25 01:53:30 -07:00
Hamza Zia
13f1df4900
further ui refinement and torrent metalink functionality added;
2012-06-22 05:31:02 -07:00
Hamza Zia
56ce71454a
web_sock connection reset cases handled
2012-06-09 21:51:28 +08:00
Hamza Zia
c3fae7388c
empty download bug
2012-06-09 21:40:45 +08:00
Hamza Zia
18f72e4f62
about added
2012-06-09 14:50:26 +08:00
Hamza Zia
8916d47b12
websocket backend added
2012-06-09 14:35:24 +08:00
Hamza Zia
d7f5eb8a8a
empty download notification
2012-06-09 13:34:53 +08:00
Hamza Zia
336ed03d31
deleted annoying backup files, have to add it in .gitignore
2012-06-07 20:46:49 +08:00
Hamza Zia
ec253f92b4
download specific settings functionality added!!!
2012-06-07 20:45:58 +08:00
Hamza Zia
a05a7b552a
added more info functionality to downloads
2012-06-07 18:02:11 +08:00
Hamza Zia
aff99f1fc6
major downloads refactoring and efficient updating of dom elements
2012-06-07 16:10:19 +08:00
Hamza Zia
d006bdeab1
added dynamic global settings functionality
2012-06-07 01:43:51 +08:00
Hamza Zia
8501ccde77
updating the values for global settings, very near to completing the feature
2012-06-06 22:50:59 +08:00
Hamza Zia
6c9f1843f1
template for global settings added
2012-06-06 20:08:24 +08:00
Hamza Zia
ad3763128a
file backup bug
2012-06-06 18:41:40 +08:00
Hamza Zia
713ec96ef2
infrastructure for dynamic settings injection added
2012-06-06 18:41:15 +08:00
Hamza Zia
ca3f32a130
time formatting updated
2012-06-06 16:09:48 +08:00
Hamza Zia
4f6c98c563
rounding of statistics changed to fixed decimal places
2012-06-06 15:51:42 +08:00
Hamza Zia
433663a584
hack for http authentication for all browsers added over JSONP!!
2012-06-06 15:06:05 +08:00
Hamza Zia
b1f297aa7b
http authentication hack added for JSONP !!!!
2012-06-06 14:17:55 +08:00
Hamza Zia
7b8cdc9d6b
eta time added to active downloads
2012-06-06 13:17:39 +08:00
Hamza Zia
2ea153d644
torrent magnet link bugs fixed
2012-06-06 01:55:59 +08:00
Hamza Zia
71ea9b22ce
functionality for adding multiple links to new download added
2012-06-06 01:24:15 +08:00
Hamza Zia
c7c1ccd4c4
basic ui refinement
2012-06-05 22:12:01 +08:00
Hamza Zia
53971cf220
minimal download statistics
2012-06-05 20:53:52 +08:00
Hamza Zia
66248c7ab8
file creation error
2012-06-05 19:41:42 +08:00
Hamza Zia
66561d288d
basic download resume and pause functionality added!!!
2012-06-05 19:40:43 +08:00