# HG changeset patch # User Nathan Phillip Brink # Date 2010-10-13 23:17:52 # Node ID 589628d5019b2d56f2293c8d546727db3145300c # Parent 7ce16688498de34a077105477d10542a0fcc01a6 Use the new rounded-button style when editing an existing schedule. Move class="" attribute after the more important attributes in the associated JS. diff --git a/class.class.php b/class.class.php --- a/class.class.php +++ b/class.class.php @@ -75,8 +75,8 @@ class Classes $out = '' . $n . ' ' . $n . ' ' . $n - . '
' . $n - . '
' . $n + . '
' . $n + . '
' . $n . "\n"; foreach ($this->sections as $key => $section) diff --git a/class.section.php b/class.section.php --- a/class.section.php +++ b/class.section.php @@ -242,7 +242,7 @@ class Section . " \n"; } - $out .= '
' . $n; + $out .= '
' . $n; $out .= ' ' . $n; $out .= "\n"; diff --git a/scripts/scheduleInput.js b/scripts/scheduleInput.js --- a/scripts/scheduleInput.js +++ b/scripts/scheduleInput.js @@ -148,7 +148,7 @@ //-------------------------------------------------- function addRow(){ sectionsOfClass[classNum] = 0; // This is class 0, initialize at 0 - jQuery('#jsrows').append('
'); + jQuery('#jsrows').append('
'); classNum++; }; @@ -184,7 +184,7 @@ //-------------------------------------------------- jQuery('.addSection').live('click', function() { sectionsOfClass[jQuery(this).parent().parent().attr("title")]++; // Increases sectionsOfClass[classNum] - jQuery(this).parent().parent().after('' + getCommonInputs(jQuery(this).parent().parent().attr("title")) + '
'); + jQuery(this).parent().parent().after('' + getCommonInputs(jQuery(this).parent().parent().attr("title")) + '
'); }); //--------------------------------------------------