Changes from jorisvanzundert for stemweb help text display
tla [Thu, 12 Jun 2014 10:39:47 +0000 (12:39 +0200)]
root/css/dashboard.css
root/js/componentload.js
root/src/index.tt

index fcfa7c3..2a12698 100644 (file)
        margin-top: 5px;
        padding: 10px;
        border: 1px solid #ddd;
+       display: none;
 }
\ No newline at end of file
index 37b4f12..8be3210 100644 (file)
@@ -548,7 +548,7 @@ $(document).ready( function() {
 
        $('#stemweb-ui-dialog').dialog({
                autoOpen: false,
-               height: 425,
+               height: 'auto',
                width: 400,
                modal: true,
                buttons: {
@@ -605,6 +605,9 @@ $(document).ready( function() {
                                        // Set up the relevant options for whichever algorithm is chosen.
                                        // "key" -> form name, option ID "stemweb_$key_opt"
                                        // "name" -> form label
+                                       $('#stemweb_algorithm_help').click( function() {
+                                               $('#stemweb_algorithm_desc_text').toggle( 'blind' );
+                                               });
                                        $('#stemweb_algorithm').change( function() {
                                                var pk = $(this).val();
                                                // Display a link to the popup description, and fill in
index 6901bb2..54dea5f 100644 (file)
@@ -171,7 +171,7 @@ var textOnLoad = "[% withtradition %]";
                <h5>Choose an algorithm</h5>
                <label for="algorithm">Run algorithm: </label>
                <select id="stemweb_algorithm" name="algorithm"></select>
-               <!-- span id="stemweb_algorithm_help">What is this?</span><br/ -->
+               <span id="stemweb_algorithm_help">What is this?</span><br/>
                        <div id="stemweb_algorithm_desc_text"></div>
                        <br/>
                        <h5>Select the options</h5>