aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-21 16:31:46 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-21 16:31:46 -0700
commit024f2019e6a3f23bec88d3c1100d67456e34adc9 (patch)
treeb034ccdfff5af50d6f77496cbdd178b27427b270 /view
parent709c86b2daec32ae0d5d6d0e7f88b8607e02edba (diff)
downloadvolse-hubzilla-024f2019e6a3f23bec88d3c1100d67456e34adc9.tar.gz
volse-hubzilla-024f2019e6a3f23bec88d3c1100d67456e34adc9.tar.bz2
volse-hubzilla-024f2019e6a3f23bec88d3c1100d67456e34adc9.zip
store default location
Diffstat (limited to 'view')
-rw-r--r--view/jot-header.tpl2
-rw-r--r--view/jot.tpl2
-rw-r--r--view/settings.tpl7
-rw-r--r--view/theme/default/style.css14
4 files changed, 20 insertions, 5 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 39f8adc6e..8c7cce360 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -81,7 +81,7 @@ tinyMCE.init({
}
function jotGetLocation() {
- reply = prompt("Where are you right now?");
+ reply = prompt("Where are you right now?", $('#jot-location').val());
if(reply && reply.length) {
$('#jot-location').val(reply);
}
diff --git a/view/jot.tpl b/view/jot.tpl
index 5ceb79503..586274c35 100644
--- a/view/jot.tpl
+++ b/view/jot.tpl
@@ -9,7 +9,7 @@
<input type="hidden" name="type" value="wall" />
<input type="hidden" name="profile_uid" value="$profile_uid" />
<input type="hidden" name="return" value="$return_path" />
-<input type="hidden" name="location" id="jot-location" value="" />
+<input type="hidden" name="location" id="jot-location" value="$defloc" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" ></textarea>
diff --git a/view/settings.tpl b/view/settings.tpl
index ce13e2e2e..aa0bf17e0 100644
--- a/view/settings.tpl
+++ b/view/settings.tpl
@@ -25,6 +25,13 @@ $zoneselect
</div>
<div id="settings-timezone-end" ></div>
+<div id="settings-defloc-wrapper" >
+<label id="settings-defloc-label" for="settings-defloc" >Default Post Location: </label>
+<input type="text" name="defloc" id="settings-defloc" value="$defloc" />
+</div>
+<div id="settings-defloc-end" ></div>
+
+
<div id="settings-theme-select">
<label id="settings-theme-label" for="theme-select" >Display Theme: </label>
$theme
diff --git a/view/theme/default/style.css b/view/theme/default/style.css
index 57d2888f4..92fb93887 100644
--- a/view/theme/default/style.css
+++ b/view/theme/default/style.css
@@ -282,7 +282,8 @@ input#dfrn-url {
#settings-username-end,
#settings-email-end,
-#settings-nick-end,
+#settings-nick-end,
+#settings-defloc-end,
#settings-timezone-end,
#settings-theme-end,
#settings-password-end,
@@ -298,7 +299,8 @@ input#dfrn-url {
#settings-username-label,
#settings-email-label,
-#settings-nick-label,
+#settings-nick-label,
+#settings-defloc-label,
#settings-timezone-label,
#settings-theme-label,
#settings-password-label,
@@ -315,6 +317,7 @@ input#dfrn-url {
#settings-username,
#settings-email,
#settings-nick,
+#settings-defloc,
#timezone-select,
#theme-select,
#settings-password,
@@ -328,7 +331,12 @@ input#dfrn-url {
margin-bottom: 20px;
}
-#settings-theme-label {
+#settings-theme-label,
+#settings-defloc-label {
+ margin-top: 20px;
+}
+
+#settings-defloc {
margin-top: 20px;
}