aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorAlexandre Hannud Abdo <abdo@member.fsf.org>2014-09-16 18:56:34 -0300
committerAlexandre Hannud Abdo <abdo@member.fsf.org>2014-09-16 19:00:53 -0300
commit5bdfc2f64780abd36d889dc0bbe52026b768631b (patch)
treeeb0c465158a33e0491d96e2000fa83a578e280ba /view/tpl
parenteed6cbfb2a609536b62763aa8b412176c76b49c6 (diff)
downloadvolse-hubzilla-5bdfc2f64780abd36d889dc0bbe52026b768631b.tar.gz
volse-hubzilla-5bdfc2f64780abd36d889dc0bbe52026b768631b.tar.bz2
volse-hubzilla-5bdfc2f64780abd36d889dc0bbe52026b768631b.zip
Fix name attribute of button elements so jquery '.submit()' doesn't break
According to "Additional notes" in: http://api.jquery.com/submit/ Not fixing buttons created with 'input' tags.
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/comment_item.tpl2
-rwxr-xr-xview/tpl/jot.tpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl
index 351cc8e14..e68314797 100755
--- a/view/tpl/comment_item.tpl
+++ b/view/tpl/comment_item.tpl
@@ -58,7 +58,7 @@
<i class="icon-eye-open comment-icon" ></i>
</button>
{{/if}}
- <button id="comment-edit-submit-{{$id}}" class="btn btn-primary btn-xs" type="submit" name="submit" onclick="post_comment({{$id}}); return false;">{{$submit}}</button>
+ <button id="comment-edit-submit-{{$id}}" class="btn btn-primary btn-xs" type="submit" name="button-submit" onclick="post_comment({{$id}}); return false;">{{$submit}}</button>
</div>
</div>
<div class="clear"></div>
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl
index c4fdba0f5..c51dc02a5 100755
--- a/view/tpl/jot.tpl
+++ b/view/tpl/jot.tpl
@@ -85,7 +85,7 @@
<i class="icon-eye-open jot-icons" ></i>
</button>
{{/if}}
- <button class="btn btn-primary btn-sm" type="submit" name="submit">{{$share}}</button>
+ <button class="btn btn-primary btn-sm" type="submit" name="button-submit">{{$share}}</button>
</div>
<div id="profile-jot-perms-end"></div>
<div id="profile-jot-plugin-wrapper">