Changeset - 9ad3cb940318
[Not reviewed]
default
0 3 0
Nathan Brink (binki) - 15 years ago 2011-02-05 21:46:53
ohnobinki@ohnopublishing.net
Automatically display Saturday on the input page if autocomplete data uses it.
3 files changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
input.php
Show inline comments
 
@@ -130,25 +130,25 @@ if (!empty($_REQUEST['selectschool'])
 
	<!-- Allow CSS to apply to entire rows at a time. -->
 
	<colgroup>
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col class="saturday" />
 
	  <col class="saturday collapsed" />
 
	  <col />
 
	  <col />
 
	</colgroup>
 
        <!-- Header -->
 
        <tr>
 
          <td>Class ID</td>
 
          <td class="center" id="letterNumber">Section</td>
 
          <td class="center">Prof</td>
 
          <td class="center">Start Time</td>
 
          <td class="center">End Time</td>
 
          <td class="center">M</td>
 
          <td class="center">Tu</td>
scripts/scheduleInput.js
Show inline comments
 
@@ -242,24 +242,28 @@ function addTips()
 
    corner: { target: 'topMiddle', tooltip: 'bottomMiddle' },
 
  });
 
}
 

	
 
/**
 
 * \brief
 
 *   Add a section to a class.
 
 */
 
function add_section_n(cnum, name, synonym, stime, etime, days, prof, location, type)
 
{
 
    jQuery('.pclass'+cnum).after(genSectionHtml_n(cnum, name, synonym, stime, etime, days, prof, location, type));
 
    sectionsOfClass[cnum] ++;
 

	
 
    /* unhide the saturday columns if it's used by autocomplete data */
 
    if (days.s)
 
	jQuery('#jsrows col.saturday').removeClass('collapsed');
 
}
 
function add_section(cnum)
 
{
 
    return add_section_n(cnum, '', '', '', '', {m: false, t: false, w: false, h: false, f: false, s: false}, '', '', '');
 
}
 

	
 
/**
 
 * Add a list of sections gotten via an AJAX call.
 
 */
 
function add_sections(cnum, data)
 
{
 
    var i;
styles/general.css
Show inline comments
 
@@ -192,25 +192,25 @@ td.center {
 
  border: 1px solid #999;
 
  text-align: center!important;
 
/*  background: #92a689!important; */
 
  background: #EEE;
 

	
 
  cursor:default;
 
}
 
.green:hover {
 
  background: #68a64a!important;
 
}
 

	
 
/* For now, hide Saturday on the input page even though it works perfectly fine */
 
.saturday
 
.collapsed
 
{
 
  /* http://www.w3.org/TR/CSS/tables.html#columns */
 
  visibility: collapse;
 
}
 

	
 
/* General Classes */
 

	
 
.block
 
{
 
    display: block;
 
}
 
.clear {
0 comments (0 inline, 0 general)