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
 
@@ -136,13 +136,13 @@ if (!empty($_REQUEST['selectschool'])
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col />
 
	  <col class="saturday" />
 
	  <col class="saturday collapsed" />
 
	  <col />
 
	  <col />
 
	</colgroup>
 
        <!-- Header -->
 
        <tr>
 
          <td>Class ID</td>
scripts/scheduleInput.js
Show inline comments
 
@@ -248,12 +248,16 @@ function addTips()
 
 *   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}, '', '', '');
 
}
 

	
styles/general.css
Show inline comments
 
@@ -198,13 +198,13 @@ td.center {
 
}
 
.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 */
0 comments (0 inline, 0 general)