correctly type button

pull/3046/head
Jens Ulferts 10 years ago
parent 2d5d629550
commit ff7a9cd659
  1. 1
      frontend/app/ui_components/wiki-toolbar-directive.js
  2. 1
      lib/redmine/wiki_formatting/textile/helper.rb

@ -32,6 +32,7 @@ module.exports = function() {
'menubar=no, status=no, scrollbars=yes"); return false;',
HELP_LINK_HTML = jQuery('<button title="' + I18n.t('js.inplace.link_formatting_help') + '"' +
' class="jstb_help icon icon-help" ' +
' type="button" ' +
'onclick="' + HELP_LINK_ONCLICK + '">' +
'<span class="hidden-for-sighted">' +
I18n.t('js.inplace.link_formatting_help') +

@ -38,6 +38,7 @@ module Redmine
"height=640, menubar=no, status=no, scrollbars=yes\"); return false;"
help_button = content_tag :button,
'',
type: 'button',
class: 'jstb_help icon icon-help',
onclick: open_help,
title: l(:setting_text_formatting) do

Loading…
Cancel
Save