Commit graph

89 commits

Author SHA1 Message Date
Tom MacWright
e96a64ca9c Reuse styles for map-ui panel 2013-07-18 10:45:15 -07:00
Tom MacWright
9172695f7f Implement long URL option, toggling, and labeling for share 2013-07-18 10:45:15 -07:00
Tom MacWright
d0ed118ee2 Refactor out 'globals' from more functions 2013-07-18 10:45:13 -07:00
Tom MacWright
33897d30b3 Scope map variable. 2013-07-18 10:40:24 -07:00
Tom MacWright
64f5b3f511 Refactoring 4 life 2013-07-18 10:40:24 -07:00
Tom MacWright
3a6c476833 Refactor forever 2013-07-18 10:37:45 -07:00
Tom MacWright
5fc7a47f6d Use querystring, stop manually building urls 2013-07-18 10:37:45 -07:00
John Firebaugh
33aa0a6e45 Rename to L.OSM.Layers and continue implementation 2013-07-18 10:37:45 -07:00
Tom MacWright
7bcea3839d Even more map ui js refactor 2013-07-18 10:37:44 -07:00
Tom MacWright
483854f411 Start to refactor updatelinks 2013-07-18 10:36:08 -07:00
Tom MacWright
22d6633114 Start refactoring notes layer 2013-07-18 10:31:20 -07:00
Tom MacWright
c75d725893 generate short link kind of 2013-07-18 10:31:20 -07:00
Tom MacWright
36fac06bd5 Add share button to map 2013-07-18 10:31:20 -07:00
Tom MacWright
73bbee5df9 Add leaflet-locate control, invisible currently. 2013-07-18 10:31:19 -07:00
Tom MacWright
5aea67a71f Remove pan and zoom controls 2013-07-18 10:31:19 -07:00
Tom Hughes
fe2f03da14 Give up on automatic resizing of text areas 2013-07-18 15:31:51 +01:00
Tom Hughes
e84b2bd22f Replace some inline javascript with a UJS solution 2013-05-06 11:09:17 +01:00
Tom Hughes
e8d32637c1 Add javascript OAuth support 2013-03-28 00:34:09 +00:00
John Firebaugh
6f793e1b21 Pan/zoom controls that look like the OL ones 2012-11-09 12:59:28 -08:00
John Firebaugh
fe6e837cfe Replace leaflet.draw with leaflet-locationfilter 2012-11-09 12:59:28 -08:00
John Firebaugh
30ad58c01f Port to Leaflet 2012-11-09 12:59:27 -08:00
Tom Hughes
762d615859 Don't try and dereference an object that may not exist 2012-10-05 18:01:02 +01:00
Tom Hughes
824a474d93 Refactor updatelinks to avoid exceptions in updateLocation 2012-10-05 16:02:26 +01:00
John Firebaugh
c3d1123965 Merge globals.js.erb and params.js 2012-10-05 15:21:47 +01:00
John Firebaugh
87e8cf3b58 Require index-only JS in index.js 2012-09-30 11:58:14 +01:00
John Firebaugh
0509fc8d12 Move param-based map configuration to client
This prepares us for hash-based permalinks (#81) and removes
the duplication between index.html.erb and SiteController#edit.
2012-09-18 08:56:45 +01:00
John Firebaugh
14a7d1abfc Use jquery.cookie 2012-09-18 08:55:27 +01:00
John Firebaugh
e338d11408 Move resize JS to application bundle 2012-09-07 13:05:25 -07:00
Tom Hughes
7af04f8691 Move rich text support code into a separate file 2012-09-06 20:44:24 +01:00
Tom MacWright
02de53eb45 Refactor view and css code around homepage links
This adds a new class to the body which we can use to do more styling
in CSS rather than erb-embedded Ruby. The only visual change is that
there's now a subtle transition for homepage links becoming active.
2012-09-06 20:28:23 +01:00
Tom Hughes
7c0055b5d7 Move piwik code to a static JS asset 2012-09-06 09:02:51 +01:00
John Firebaugh
519c7dc2dd Move key JS to application bundle 2012-08-30 15:34:26 -07:00
Tom MacWright
93c392cf5f Basic javascript cleanup
Unifies some logic, cleans up style.
2012-08-30 21:27:57 +01:00
John Firebaugh
d6a8aaa369 Move sidebar JS to application bundle
It's required on the main page so will nearly always be loaded anyway.

Enclosed in an anonymous function to avoid leaking the onclose global.
2012-08-30 20:30:11 +01:00
Tom Hughes
1e169bca25 Remove copy of Array.forEach that was committed accidentally 2012-08-30 19:17:11 +01:00
Tom Hughes
7b626f31be Use augment.js for improved cross browser compatibility
Remove the quick hack for that I added for Array.forEach and pull
in augment.js instead to add missing JS methods to older browsers.
2012-08-29 12:29:47 +01:00
Tom Hughes
a35cff243e Implement Array.forEach for browsers which don't have it 2012-08-29 09:30:14 +01:00
Tom Hughes
d9054cfe29 Move some javascript from the layout to application.js 2012-08-28 19:47:20 +01:00
John Firebaugh
5aa09fbfd0 Use a standard application.js bundle
Include map.js and menu.js in the bundle.
2012-08-27 20:31:17 +01:00
Renamed from app/assets/javascripts/site.js (Browse further)