Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added new insert page menu to other modules
  • Loading branch information
FayCross committed Mar 19, 2015
1 parent 32761a6 commit c5660b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
4 changes: 2 additions & 2 deletions editor/js/toolbox.js
Expand Up @@ -58,8 +58,8 @@ var EDITOR = (function ($, parent) {
// it's a page type
} else if (itemData.item != undefined) {
var hint = itemData.hint != undefined ? '<p>' + itemData.hint + '</p>' : "";
hint = itemData.thumb != undefined ? '<img alt="' + itemData.name + ' ' + language.insertDialog.$preview + '" src="modules/xerte/parent_templates/Nottingham/' + itemData.thumb + '" />' + hint : hint;
hint = hint != "" ? '<hr/><div>' + language.insertDialog.$preview + ':</div>' + hint : hint;
hint = itemData.thumb != undefined ? '<div>' + language.insertDialog.$preview + ':</div><img alt="' + itemData.name + ' ' + language.insertDialog.$preview + '" src="modules/xerte/parent_templates/Nottingham/' + itemData.thumb + '" />' + hint : hint;
hint = hint != "" ? '<hr/>' + hint : hint;

var $insertInfo = $('<ul class="details"><li><a href="#"><div class="insert_buttons"/>' + hint + '</a></li></ul>'),
label = language.insertDialog.$label + ":",
Expand Down
2 changes: 1 addition & 1 deletion languages/wizard_en-GB.xml
@@ -1,7 +1,7 @@
<language name="English" code="en-GB">
<layout closetooltip="Close this pane" opentooltip="Open this pane" resizetooltip="Resize this pane" />
<edit label="Edit ..." tooltip="Edit this option" description="Edit button" />
<insertDialog label="Insert {i} Page" preview="Preview">
<insertDialog label="Insert New {i}" preview="Preview">
<insertBefore label="Before" tooltip="Insert before selected page"/>
<insertAfter label="After" tooltip="Insert after selected page"/>
<insertAtEnd label="At end" tooltip="Insert as last page"/>
Expand Down
9 changes: 1 addition & 8 deletions modules/decision/edithtml.php
Expand Up @@ -208,14 +208,7 @@ function output_editor_code($row_edit, $xerte_toolkits_site, $read_status, $vers
</div>
</div>

<div id="insert-dialog" class="hide" title="Insert Page">
<div id="insert-info">
<img class="thumb"/><br />
<span></span><br /><br />
<div id="insert-buttons"><button>Insert Before</button>&nbsp;<button>Insert After</button>&nbsp;<button>Insert (at end)</button></div>
</div>
<div id="insert-menu"></div>
</div>
<div id="insert_menu" class="hide"></div>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="editor/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
Expand Down
9 changes: 1 addition & 8 deletions modules/site/edithtml.php
Expand Up @@ -208,14 +208,7 @@ function output_editor_code($row_edit, $xerte_toolkits_site, $read_status, $vers
</div>
</div>

<div id="insert-dialog" class="hide" title="Insert Page">
<div id="insert-info">
<img class="thumb"/><br />
<span></span><br /><br />
<div id="insert-buttons"><button>Insert Before</button>&nbsp;<button>Insert After</button>&nbsp;<button>Insert (at end)</button></div>
</div>
<div id="insert-menu"></div>
</div>
<div id="insert_menu" class="hide"></div>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="editor/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
Expand Down

0 comments on commit c5660b6

Please sign in to comment.