aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-17 11:49:27 -0800
committerfriendica <info@friendica.com>2012-02-17 11:49:27 -0800
commit75acc1ed966a6bb3e3ec690a667d148f900dba9c (patch)
tree8302f99949a281e89566b5f6496b9129ba0ffc4e /view
parent184f6165fc41d8dcbbecffa933f640995f741fda (diff)
downloadvolse-hubzilla-75acc1ed966a6bb3e3ec690a667d148f900dba9c.tar.gz
volse-hubzilla-75acc1ed966a6bb3e3ec690a667d148f900dba9c.tar.bz2
volse-hubzilla-75acc1ed966a6bb3e3ec690a667d148f900dba9c.zip
support plaintext on editpost, editorinit called before all buttons laid out
Diffstat (limited to 'view')
-rwxr-xr-xview/jot-header.tpl2
-rwxr-xr-xview/jot.tpl5
-rwxr-xr-xview/theme/dispy/jot.tpl2
-rwxr-xr-xview/theme/duepuntozero/jot.tpl2
-rwxr-xr-xview/theme/loozah/jot.tpl2
-rwxr-xr-xview/theme/testbubble/jot.tpl2
6 files changed, 7 insertions, 8 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 02662d2d4..007f639b6 100755
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -11,12 +11,12 @@ function initEditor(cb){
if(plaintext == 'none') {
$("#profile-jot-text-loading").hide();
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
- $(".jothidden").show();
editor = true;
$("a#jot-perms-icon").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
+ $(".jothidden").show();
if (typeof cb!="undefined") cb();
return;
}
diff --git a/view/jot.tpl b/view/jot.tpl
index f116dc0f0..1c19dd6fa 100755
--- a/view/jot.tpl
+++ b/view/jot.tpl
@@ -13,9 +13,7 @@
<input type="hidden" name="preview" id="jot-preview" value="0" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>
- {{ if $content }}<script>initEditor();</script>{{ endif }}
-
-
+
<ul id="jot-tools" class="jothidden" style="display:none">
<li><a href="#" onclick="return false;" id="wall-image-upload" title="$upload">$shortupload</a></a></li>
<li><a href="#" onclick="return false;" id="wall-file-upload" title="$attach">$shortattach</a></li>
@@ -45,6 +43,7 @@
</form>
+{{ if $content }}<script>initEditor();</script>{{ endif }}
diff --git a/view/theme/dispy/jot.tpl b/view/theme/dispy/jot.tpl
index 0ceddb3b7..c312d221a 100755
--- a/view/theme/dispy/jot.tpl
+++ b/view/theme/dispy/jot.tpl
@@ -24,7 +24,6 @@
<img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>
- {{ if $content }}<script>initEditor();</script>{{ endif }}
<div id="profile-jot-submit-wrapper" style="display:none">
@@ -73,3 +72,4 @@
<div id="profile-jot-end"></div>
</form>
</div>
+ {{ if $content }}<script>initEditor();</script>{{ endif }}
diff --git a/view/theme/duepuntozero/jot.tpl b/view/theme/duepuntozero/jot.tpl
index ade1614b7..e356d1d8f 100755
--- a/view/theme/duepuntozero/jot.tpl
+++ b/view/theme/duepuntozero/jot.tpl
@@ -18,7 +18,6 @@
<img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>
- {{ if $content }}<script>initEditor();</script>{{ endif }}
<div id="profile-jot-submit-wrapper" class="jothidden">
<input type="submit" id="profile-jot-submit" name="submit" value="$share" />
@@ -81,3 +80,4 @@
<div id="profile-jot-end"></div>
</form>
</div>
+ {{ if $content }}<script>initEditor();</script>{{ endif }}
diff --git a/view/theme/loozah/jot.tpl b/view/theme/loozah/jot.tpl
index 9bda1868e..ac64223fb 100755
--- a/view/theme/loozah/jot.tpl
+++ b/view/theme/loozah/jot.tpl
@@ -19,7 +19,6 @@
<img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>
- {{ if $content }}<script>initEditor();</script>{{ endif }}
<div id="profile-jot-submit-wrapper" style="display:none" class="jothidden">
<input type="submit" id="profile-jot-submit" name="submit" value="$share" />
@@ -82,3 +81,4 @@
<div id="profile-jot-end"></div>
</form>
</div>
+ {{ if $content }}<script>initEditor();</script>{{ endif }}
diff --git a/view/theme/testbubble/jot.tpl b/view/theme/testbubble/jot.tpl
index e2fd7132a..5bb5b4673 100755
--- a/view/theme/testbubble/jot.tpl
+++ b/view/theme/testbubble/jot.tpl
@@ -20,7 +20,6 @@
<img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>
- {{ if $content }}<script>initEditor();</script>{{ endif }}
<div id="profile-upload-wrapper" class="jot-tool" style="display: none;" >
<div id="wall-image-upload-div" ><a onclick="return false;" id="wall-image-upload" class="icon border camera" title="$upload"></a></div>
@@ -72,3 +71,4 @@
<div id="profile-jot-end"></div>
</form>
</div>
+ {{ if $content }}<script>initEditor();</script>{{ endif }}