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.
This commit is contained in:
Alexandre Hannud Abdo 2014-09-16 18:56:34 -03:00
parent eed6cbfb2a
commit 5bdfc2f647
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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">