Commit graph

274 commits

Author SHA1 Message Date
7d99950942 Only setInterval once to animate the loading icon (fixes #2888)
(On Chrome, at least,) window.onload() is called once by hand, and once
by the browser. This ends up calling setInterval() twice. When
stopAnimation() is called later, only the second interval is cleared; so
the first one keeps firing forever. Mostly harmless but unnecessary.

Only the first hunk of this patch is really needed, but making
startAnimation() / stopAnimation() idempotent can't hurt.
2016-03-03 18:08:46 +05:30
0e4c49729b window.onerror: log stack to server if available
Firefox >= 31 and Chrome >= ~August 2013 pass the Error object as the
5th parameter to window.onerror.

https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
https://code.google.com/p/chromium/issues/detail?id=147127
2015-05-20 12:44:31 +02:00
rolux
bafad0a5c7 cleanup 2015-04-29 13:41:17 +02:00
rolux
02552f3f83 cleanup; wording 2015-04-19 11:09:12 +02:00
rolux
baaae8ac5c add license infrastructure 2015-04-17 16:42:52 +01:00
j
0e187aa24c add loaded event for site scripts 2015-03-19 14:09:47 +00:00
rolux
b00a3a0d19 add guards in case add/removeEventListener do not exist 2015-02-21 16:05:07 +05:30
rolux
fa376dd188 allow for aborting user script by pressing escape on page load 2015-02-21 16:01:52 +05:30
rolux
df7c6c6de3 fix formatting 2015-02-21 15:51:13 +05:30
rolux
8f9d8e2ce2 fix formatting 2015-02-21 15:50:15 +05:30
j
8c39aa37d0 ignore TypeError: Attempted to assign to readonly property. 2015-02-06 11:02:19 +05:30
j
44ae4db25a rename error log api, fixes #2591 2014-12-16 13:44:42 +00:00
j
69b38b3c53 update UI path 2014-09-29 15:23:13 +02:00
j
2963e90819 oxjs renamed build/ to min/ 2014-09-27 17:06:01 +02:00
rolux
714f495a3d build/ -> min/, Ox.UI/ -> UI/ 2014-09-26 16:54:20 +02:00
j
a266c518b7 use parent.bindMessage 2014-09-23 23:48:59 +02:00
j
614e7f0d09 store on-load script on server (ui.onload), fixes #1850 2014-04-09 15:44:28 +00:00
rolux
abd11dc33f fix #2292 (Loading screen images shouldn't be user-selectable) 2014-02-12 17:56:41 +00:00
j
a7e87647e0 dont set empty document.location.hash, causes # to show up in Firefox, fixes #1870 2014-01-22 12:25:17 +00:00
j
4df2882ef2 load pandora debug with ?version 2014-01-22 10:16:03 +00:00
j
3b661fe05b use Ox.getScript, Ox.getFile fails on .js?123 2014-01-02 13:44:41 +00:00
j
345ab88cae load pandora.min.js with pandora version 2014-01-02 13:37:49 +00:00
rolux
886794e4a3 cosmetic changes 2013-12-29 17:33:42 +05:30
j
5cf198a8ad fix loading pandora with strange extensions installed 2013-12-11 20:04:36 +00:00
j
0ef598195c text names 2013-11-08 18:57:24 +00:00
j
ea4f3a831e update url leaving fullscreen, fixes #1910 2013-10-25 13:49:45 +00:00
j
b46aa6625f include path in url not error 2013-10-22 18:40:02 +00:00
rolux
3163faa5e3 on load, make sure user.ui.itemSort and user.ui.itemView are valid (itemKey or itemView may have been removed) - fixes #1874 2013-10-22 16:27:46 +02:00
j
967125cca7 log current url too 2013-10-22 14:15:06 +00:00
j
90856174dd dont log errors in firefox extensions 2013-10-22 13:59:27 +00:00
j
7a529bfd12 get rid of filters in config, only use itemKeys filter: true 2013-09-30 18:34:44 +00:00
rolux
4754f86909 remove logging 2013-08-14 16:43:32 +00:00
rolux
b05d4c81da fix #1812 (Loading screen reflection assumes a specific site logo ratio) 2013-08-14 16:18:58 +00:00
rolux
4f11636623 fix legacy embed/print url regexp 2013-08-10 08:34:24 +00:00
rolux
b8210a7030 fix legacy embed/print url regexp 2013-08-10 08:33:54 +00:00
rolux
60e1a0b4bd add 'selection' to editSettings (like listSelection) 2013-08-09 12:54:34 +00:00
j
62af7f05a5 MSIE 10 supports gradients and loading but requires height: 'auto' to get image scaling right 2013-08-08 12:31:35 +00:00
rolux
3c6ab6236f add pandora.site.textSettings 2013-08-07 15:23:49 +00:00
rolux
f032d19abf add view to editSettings 2013-08-07 15:09:28 +00:00
rolux
36c32a5333 add default edit settings 2013-08-07 14:31:35 +00:00
rolux
cf378611c8 instantiate Ox.Clipboard as pandora.clipboard; use pandora.clipboard 2013-08-03 15:01:47 +00:00
rolux
69e7b5a752 initialize history 2013-08-03 14:00:58 +00:00
j
19b3c43808 dont use http locale until locale can be changed in ui 2013-07-28 17:57:14 +02:00
rolux
aeed539fe7 add loadingIcon.js 2013-07-28 09:52:13 +00:00
rolux
716a5a57a9 move requests/loading icon handler 2013-07-27 21:38:54 +02:00
j
5489823a61 dont set default locale in user.ui and use first browser locale by default if available and fall back to site default after that, fixes #1578; load locale from unjoined json files in debug mode 2013-07-17 10:24:22 +00:00
rolux
459872c8f8 cosmetic changes 2013-07-12 20:32:51 +00:00
rolux
7841572a20 handle old and new embed urls 2013-07-12 12:33:09 +02:00
j
15be34955e use Ox.getVideoFormat instead of Ox.UI.getVideoFormat 2013-07-09 14:36:11 +00:00
rolux
208a38c419 load home screen first, and app panel upon home screen callback (allowing for animation without the app panel blocking rendering) 2013-07-09 09:04:35 +00:00