Commit graph

4741 commits

Author SHA1 Message Date
John Firebaugh
6ef19d7e18 Remove unnecessary $(window).load() callbacks
All this is already inside a $(document).ready() callback.
2012-10-02 18:22:36 +01:00
John Firebaugh
f3afd43076 Avoid a JS error on (e.g.) ?way=nnnnn
When showing an object, the map location is not set
until the vector layer has finished loading. Thus
map.getCenter() returns null.

Registering the events earlier avoids the need to call
updateLocation manually at all.
2012-10-02 18:22:17 +01:00
Siebrand Mazeland
c6e267f2bd Localisation updates from http://translatewiki.net. 2012-10-02 13:13:29 +00:00
Tom Hughes
ab3b4b0437 Increase allowed time delta in message sending test
Only allowing one second can fail sometimes, because if the actual
time is close to rolling over to the next second then the message
time will be rounded down but Time.now may roll over to the next
second before we get to the assertion.
2012-09-30 14:24:28 +01:00
Tom Hughes
05b4406c14 Remove monkey patch for I18n which is no longer needed 2012-09-30 14:07:41 +01:00
Tom Hughes
a08d6b1a4e Require version 5.0.9 of composite_primary_keys 2012-09-30 12:39:01 +01:00
John Firebaugh
60becd1050 Remove @midnode assign
It does not appear to be necessary and no other edit links
make use of it. SiteController#edit will calculate a precise
center coordinate.
2012-09-30 12:19:15 +01:00
John Firebaugh
569f3cbe9b Remove unused event argument 2012-09-30 12:16:31 +01:00
John Firebaugh
7e3ca66fff Use $(document).ready() to initialise browse JS 2012-09-30 12:15:49 +01:00
John Firebaugh
7c5d0fff3d Move browse JS to page-specific script file 2012-09-30 12:14:25 +01:00
John Firebaugh
4d6533db32 Eliminate interpolation in browse map JS 2012-09-30 12:05:37 +01:00
John Firebaugh
605c700895 Clean up search JS
Move it to index.js/edit.js and eliminate the global doSearch
function. Not enough code is shared to justify it.
2012-09-30 12:05:24 +01:00
John Firebaugh
e83d43ca82 Move edit JS to page-specific script file 2012-09-30 11:59:49 +01:00
John Firebaugh
d62e8c43f3 Inline key partial used only on index 2012-09-30 11:59:06 +01:00
John Firebaugh
87e8cf3b58 Require index-only JS in index.js 2012-09-30 11:58:14 +01:00
John Firebaugh
0ec2843b0f Eliminate interpolation in edit JS 2012-09-30 11:57:24 +01:00
Tom Hughes
3fcdd9c397 Update Potlatch 2 to 2.3-468-ge4a2053 build 2012-09-29 18:30:32 +01:00
Tom Hughes
6b1334a10d Potlatch 2 localisation updates 2012-09-29 18:30:14 +01:00
John Firebaugh
5966792af5 Extract home_link partial 2012-09-29 18:04:56 +01:00
John Firebaugh
c4d9f902d0 Wrap index JS in a single $(document).ready() 2012-09-29 18:00:04 +01:00
John Firebaugh
352f2a1671 Move index JS to page-specific script file 2012-09-29 18:00:04 +01:00
John Firebaugh
43243e4c92 Eliminate interpolation in index JS 2012-09-29 18:00:04 +01:00
Tom Hughes
88d10f8db8 Update database schema 2012-09-29 18:00:04 +01:00
John Firebaugh
59a8f93bc6 Use the jQuery data() function to access HTML 5 data attributes 2012-09-29 18:00:03 +01:00
Siebrand Mazeland
e9ff13dc9c Localisation updates from http://translatewiki.net. 2012-09-24 18:49:53 +00:00
Tom Hughes
a6c900726d Update Potlatch 2 to 2.3-465-g19866a9 build 2012-09-24 19:00:08 +01:00
Tom Hughes
f47edb1446 Don't report the PD flag in the user API call 2012-09-24 18:44:12 +01:00
Tom Hughes
8857fe3624 Add some extra information to user API responses 2012-09-24 18:44:11 +01:00
Tom Hughes
3ce4de1295 Add a /api/0.6/user/NNNN call to the API 2012-09-24 18:44:11 +01:00
Tom Hughes
8e19a9bf7d Update logo on missing tile image 2012-09-22 00:37:24 +01:00
John Firebaugh
02bdc8f1ad Don't expose lat/lon of private traces 2012-09-21 15:29:02 -07:00
John Firebaugh
20e5f756be Support the same edit params for Potlatch 1 and 2
Trac ticket 4587
2012-09-21 15:16:56 -07:00
Matt Amos
8523f53099 Added a test for trac ticket 4471, and fixed the issue. 2012-09-21 09:07:21 +01:00
Tom Hughes
5c39e5870d Move the administrator details further down the user page 2012-09-20 09:25:53 +01:00
Tom MacWright
582e5b225d moderate refactoring of the user page 2012-09-20 09:25:20 +01:00
Tom Hughes
ebcb038c1c Suppress any border on the logo 2012-09-19 12:12:45 +01:00
Tom Hughes
1a0728ec7b Remove unused namefinder support from the geocoder backend 2012-09-18 11:54:11 +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
3b1f455dd9 Extract layer configuration to map.js 2012-09-16 16:25:33 +01:00
Martijn van Exel
5f0c590c32 Add a banner for SOTM US 2012-09-16 16:20:53 +01:00
Tom Hughes
42b20c5e0f Fix interpolation errors 2012-09-16 15:17:17 +01:00
Tom Hughes
e9c82ce19d Update database schema 2012-09-16 14:47:48 +01:00
Siebrand Mazeland
73b2a01ace Localisation updates from http://translatewiki.net. 2012-09-16 02:35:34 +00:00
Gnonthgol
fcddf920a3 Remove the "We are changing the license" flash on the login page 2012-09-14 15:24:36 +01:00
Tom Hughes
5131a0cb16 Potlatch 2 imagery update 2012-09-13 10:51:51 +01:00
Tom Hughes
686ce8f3e5 Fix interpolation issues in attribution text 2012-09-13 09:56:26 +01:00
Tom Hughes
9e9c927658 Update Potlatch 2 to 2.3-455-g0b5f2c0 build 2012-09-12 16:26:45 +01:00
Grant Slater
6c8845d62f Use the HTML5 doctype and specify the character set explicitly 2012-09-12 16:26:39 +01:00
Tom Hughes
f954dd9e86 Fix incorrect heading in copyright page 2012-09-12 14:02:39 +01:00