projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1845360
)
Don't allow Potlatch to be started with a zoom below 11.
author
Tom Hughes
<tom@compton.nu>
Fri, 31 Aug 2007 12:57:32 +0000
(12:57 +0000)
committer
Tom Hughes
<tom@compton.nu>
Fri, 31 Aug 2007 12:57:32 +0000
(12:57 +0000)
app/views/site/edit.rhtml
patch
|
blob
|
history
diff --git
a/app/views/site/edit.rhtml
b/app/views/site/edit.rhtml
index a41a80176d16fa02f26c4fd9ef2fbbfa77d30903..fc1f78ce4d84afa2bade2f7c2d250763903c6a94 100644
(file)
--- a/
app/views/site/edit.rhtml
+++ b/
app/views/site/edit.rhtml
@@
-39,6
+39,7
@@
var fo = new SWFObject("/potlatch/potlatch.swf?d="+Math.round(Math.random()*1000), "potlatch", "700", "600", "6", "#FFFFFF");
function doSWF(lat,lon,sc) {
var fo = new SWFObject("/potlatch/potlatch.swf?d="+Math.round(Math.random()*1000), "potlatch", "700", "600", "6", "#FFFFFF");
function doSWF(lat,lon,sc) {
+ if (sc < 11) sc = 11;
fo.addVariable('lat',lat);
fo.addVariable('long',lon);
fo.addVariable('scale',sc);
fo.addVariable('lat',lat);
fo.addVariable('long',lon);
fo.addVariable('scale',sc);