// Save the original unextended SVG for when we need it.
$(document).ready(function () {
original_svg = $('#stemma_graph > svg').clone();
+
+ $('#aboutlink').popupWindow({
+ height:500,
+ width:800,
+ top:50,
+ left:50,
+ scrollbars:1
+ });
+ $('#options').dialog({
+ autoOpen: false,
+ height: 200,
+ width: 300,
+ modal: true,
+ buttons: {
+ Cancel: function() {
+ $(this).dialog( "close" );
+ },
+ Reanalyze: function() {
+ $('#use_variants_form').submit();
+ },
+ }
+ });
+
});
[% END -%]
<div id="topbanner">
<div id="bannerinfo">
- <a href="help" title="Stexaminer help" class="helptag">Help / About</a>
+ <a href="help" title="Stexaminer help" class="navlink" id="aboutlink">Help / About</a>
</div>
<h1>Stexaminer</h1>
<h2>[% text_title %]</h2>
- </div>
- <div id="options">
- <h3>Analysis options:</h3>
- <form id="use_variants_form" name="use_variants_form" class="clearfix" method="POST">
- <div class="optionformelement">
- <input type="radio" name="ignore_variant" value="none" [% 'checked="true"' IF ignore_variant == 'none' %]>Analyze all variation</input><br/>
- <input type="radio" name="ignore_variant" value="orthographic" [% 'checked="true"' IF ignore_variant == 'orthographic' %]>Ignore orthographic variation</input><br/>
- <input type="radio" name="ignore_variant" value="spelling" [% 'checked="true"' IF ignore_variant == 'spelling' %]>Ignore orthographic and spelling variation</input>
- </div>
- <div class="optionformelement">
- <input type="checkbox" name="show_type1" [% 'checked="true"' IF show_type1 %]>Include type-1 variation</input>
- </div>
- <div id="options_button" class="button optionformelement" onclick="$('#use_variants_form').submit()">
- <span>Re-analyze</span>
- </div>
- </form>
+ <p><span class="navlink" onClick="$('#options').dialog('open')">Analysis options</span></p>
</div>
<div id="variants_table">
<table>
<ul class="reading_parent_list"></ul>
</div>
</div>
+
+ <div id="options" title="Analysis options...">
+ <form id="use_variants_form" name="use_variants_form">
+ <fieldset>
+ <input type="radio" name="ignore_variant" value="none" [% 'checked="true"' IF ignore_variant == 'none' %]>Analyze all variation</input><br/>
+ <input type="radio" name="ignore_variant" value="orthographic" [% 'checked="true"' IF ignore_variant == 'orthographic' %]>Ignore orthographic variation</input><br/>
+ <input type="radio" name="ignore_variant" value="spelling" [% 'checked="true"' IF ignore_variant == 'spelling' %]>Ignore orthographic and spelling variation</input>
+ </fieldset>
+ <fieldset>
+ <input type="checkbox" name="show_type1" [% 'checked="true"' IF show_type1 %]>Include type-1 variation</input>
+ </fieldset>
+ </form>
+ </div>
+
[% PROCESS footer.tt %]