From: Tara L Andrews Date: Thu, 12 Jul 2012 22:09:11 +0000 (+0200) Subject: make analysis options dialog modal X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=26cea87c9d6be127fbdf533acc9905c6908e92ca;p=scpubgit%2Fstemmatology.git make analysis options dialog modal --- diff --git a/stemmaweb/root/css/stexaminer.css b/stemmaweb/root/css/stexaminer.css index 1348dfa..703dfc1 100644 --- a/stemmaweb/root/css/stexaminer.css +++ b/stemmaweb/root/css/stexaminer.css @@ -8,23 +8,6 @@ margin-right: 12%; margin-top: 15px; } -#options { - position: relative; - border: 1px #c6dcf1 solid; - margin-left: 20px; - margin-bottom: 20px; - padding: 10px; - width: 500px; -} -.optionformelement { - float: left; - padding-left: 15px; -} -#options_button { - position: absolute; - bottom: 20px; - right: 20px; -} #variants_table { clear: both; width: 90%; diff --git a/stemmaweb/root/js/stexaminer.js b/stemmaweb/root/js/stexaminer.js index 2a9e10e..7469615 100644 --- a/stemmaweb/root/js/stexaminer.js +++ b/stemmaweb/root/js/stexaminer.js @@ -95,4 +95,27 @@ function show_stats( rs ) { // 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(); + }, + } + }); + }); diff --git a/stemmaweb/root/src/stexaminer.tt b/stemmaweb/root/src/stexaminer.tt index 1f3a945..63505f7 100644 --- a/stemmaweb/root/src/stexaminer.tt +++ b/stemmaweb/root/src/stexaminer.tt @@ -10,26 +10,11 @@ var graphdot = '[% graphdot %]'; [% END -%]

Stexaminer

[% text_title %]

-
-
-

Analysis options:

-
-
- Analyze all variation
- Ignore orthographic variation
- Ignore orthographic and spelling variation -
-
- Include type-1 variation -
-
- Re-analyze -
-
+

Analysis options

@@ -73,6 +58,20 @@ var graphdot = '[% graphdot %]'; + +
+
+
+ Analyze all variation
+ Ignore orthographic variation
+ Ignore orthographic and spelling variation +
+
+ Include type-1 variation +
+ +
+ [% PROCESS footer.tt %]