Files
        @ 807664acef3a
    
        
              Branch filter: 
        
    Location: SlatePermutate/scripts/displayTables.js - annotation
        
            
            807664acef3a
            2.0 KiB
            text/javascript
        
        
    
    Added registration code interface. The implemention is functional, but a bit rough for filling the syns[] array in php
    1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e 711d3e94b78e d882262f4f68 711d3e94b78e 711d3e94b78e d882262f4f68 711d3e94b78e 711d3e94b78e 711d3e94b78e ccb54e791b58 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 807664acef3a 711d3e94b78e 711d3e94b78e 807664acef3a  | /*
 * Copyright 2010 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink
 *
 * This file is part of SlatePermutate.
 *
 * SlatePermutate is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * SlatePermutate is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with SlatePermutate.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * \brief
 *   Handle changes to the input elements under #show-box.
 */
function show_box_change()
{
    var name = jQuery(this).attr('name');
    if (name && name.indexOf('-'))
	{
	    /* convert from 'show-prof' back to 'prof' */
	    var css_class = name.substr(name.indexOf('-') + 1);
	    if (jQuery('#' + name + ':checked').size())
		{
		    jQuery('.' + css_class).show();
		}
	    else
		{
		    jQuery('.' + css_class).hide();
		}
	}
    return false;
}
jQuery(document).ready( function()
  {
      jQuery('#show-box input').change(show_box_change);
      jQuery('#show-box input').change();
      jQuery("#regDialog").dialog({ modal: true, width: 550, resizable: false, draggable: false, autoOpen: false });   
      jQuery('#regCodes').click( function() {
        jQuery('#regDialogList').empty();
        var currSec = '.syns' + jQuery('#tabs').tabs('option','selected');
        var jHtml = jQuery(currSec).html();
        var secs = eval('(' + jHtml + ')');
        var output = '<p class=\'synList\'>';
        for( var i in secs ) {
          output = output + secs[i] + '<br />';
        }
        output = output + '</p>';
        jQuery('#regDialogList').append(output);
        jQuery("#regDialog").dialog("open");
      });
  }
);
 |