Changeset - 71e300c8c55b
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2011-03-21 00:17:55
ohnobinki@ohnopublishing.net
Trash the ``Add Class'' button which is rendered a noop by the code which enforces that there always is and only is one empty course entry row.
2 files changed with 0 insertions and 11 deletions:
0 comments (0 inline, 0 general)
input.php
Show inline comments
 
@@ -177,15 +177,12 @@ if (!empty($_REQUEST['selectsemester']))
 
          <td class="center"></td>
 
          <td class="center"></td>
 
        </tr>
 
      </table>
 
    </td>
 
  </tr>
 
  <tr>
 
    <td><span class="gray" style="padding: 0 3.5em 0 3.5em;" id="addclass">Add Class</span></td>
 
  </tr>
 
</table>
 

	
 
<div class="paddingtop">
 
  <input class="button olive" type="submit" value="Find a schedule" />
 
</div>
 

	
scripts/scheduleInput.js
Show inline comments
 
@@ -433,20 +433,12 @@ function prettyTime(time_str)
 
//--------------------------------------------------
 
// Items bound to pageload/events
 
//--------------------------------------------------
 
jQuery(document).ready(function() {
 

	
 
	//--------------------------------------------------
 
	// Bind the class-adding method
 
	//--------------------------------------------------
 
	jQuery('#addclass').click(function() {
 
		var classNum = add_class();
 
		// add_section(classNum); // enable eventually
 
	});
 

	
 
	//--------------------------------------------------
 
	// Deletes the selected class from input
 
	//--------------------------------------------------
 
	jQuery('.deleteClass').live('click', function() {
 
		if(confirm('Delete class and all sections of this class?')) {
 
		    course_remove(jQuery(this).parent().parent().data('course_i'));
 
		}
0 comments (0 inline, 0 general)