Icon for the textile help link.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11087 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
758e07cd96
commit
a18f6ffb37
|
@ -23,10 +23,7 @@ module Redmine
|
||||||
heads_for_wiki_formatter
|
heads_for_wiki_formatter
|
||||||
# Is there a simple way to link to a public resource?
|
# Is there a simple way to link to a public resource?
|
||||||
url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html"
|
url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html"
|
||||||
help_link = link_to(l(:setting_text_formatting), url,
|
javascript_tag("var wikiToolbar = new jsToolBar(document.getElementById('#{field_id}')); wikiToolbar.setHelpLink('#{escape_javascript url}'); wikiToolbar.draw();")
|
||||||
:onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;")
|
|
||||||
|
|
||||||
javascript_tag("var wikiToolbar = new jsToolBar(document.getElementById('#{field_id}')); wikiToolbar.setHelpLink('#{escape_javascript help_link}'); wikiToolbar.draw();")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def initial_page_content(page)
|
def initial_page_content(page)
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -207,12 +207,6 @@ jsToolBar.prototype = {
|
||||||
}
|
}
|
||||||
this.toolNodes = {}; // vide les raccourcis DOM/**/
|
this.toolNodes = {}; // vide les raccourcis DOM/**/
|
||||||
|
|
||||||
var h = document.createElement('div');
|
|
||||||
h.className = 'help'
|
|
||||||
h.innerHTML = this.help_link;
|
|
||||||
'<a href="/help/wiki_syntax.html" onclick="window.open(\'/help/wiki_syntax.html\', \'\', \'resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\'); return false;">Aide</a>';
|
|
||||||
this.toolbar.appendChild(h);
|
|
||||||
|
|
||||||
// Draw toolbar elements
|
// Draw toolbar elements
|
||||||
var b, tool, newTool;
|
var b, tool, newTool;
|
||||||
|
|
||||||
|
|
|
@ -198,3 +198,14 @@ jsToolBar.prototype.elements.img = {
|
||||||
wiki: function() { this.encloseSelection("!", "!") }
|
wiki: function() { this.encloseSelection("!", "!") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// spacer
|
||||||
|
jsToolBar.prototype.elements.space5 = {type: 'space'}
|
||||||
|
// help
|
||||||
|
jsToolBar.prototype.elements.help = {
|
||||||
|
type: 'button',
|
||||||
|
title: 'Help',
|
||||||
|
fn: {
|
||||||
|
wiki: function() { window.open(this.help_link, '', 'resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes') }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -95,3 +95,6 @@
|
||||||
.jstb_img {
|
.jstb_img {
|
||||||
background-image: url(../images/jstoolbar/bt_img.png);
|
background-image: url(../images/jstoolbar/bt_img.png);
|
||||||
}
|
}
|
||||||
|
.jstb_help {
|
||||||
|
background-image: url(../images/help.png);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue