Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* drop ie6 and ie7 support * add Redmine 3.4 support * remove unnecessary view layout hook
- Loading branch information
Michael Skrynski
committed
Jul 28, 2017
1 parent
4fd67b7
commit 7d7a073
Showing
3 changed files
with
29 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
if(typeof(jsToolBar) != 'undefined') { | ||
|
||
jsToolBar.prototype.elements.plantuml = { | ||
type: 'button', | ||
after: 'h3', | ||
title: 'Add PlantUML diagramm', | ||
fn: { | ||
wiki: function() { | ||
this.encloseLineSelection('{{plantuml(png)\n', '\n}}') | ||
} | ||
/** | ||
* Extend the jsToolBar function to add the plantUML buttons to editor toolbar. | ||
* Needs to run after the jsToolbar function is defined and before toolbars are drawn | ||
* | ||
* The position cannot be set (see http://www.redmine.org/issues/14936 ) | ||
*/ | ||
if (typeof(jsToolBar) != 'undefined') { | ||
jsToolBar.prototype.elements.plantuml = { | ||
type: 'button', | ||
title: 'Add PlantUML diagramm', | ||
fn: { | ||
wiki: function () { | ||
// this.singleTag('{{plantuml(png)\n', '\n}}'); | ||
this.encloseLineSelection('{{plantuml(png)\n', '\n}}') | ||
} | ||
} | ||
} | ||
} | ||
|
||
} else { | ||
throw 'could not add plantUML button to Toolbar. jsToolbar is undefined'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters