';
}
//--------------------------------------------------
@@ -148,7 +148,7 @@
// Adds a new class when the add class button is
// clicked.
//--------------------------------------------------
- jQuery('#classage').click(function() {
+ jQuery('#addclass').click(function() {
addRow();
});
@@ -156,8 +156,9 @@
// Deletes the selected class from input.
//--------------------------------------------------
jQuery('.deleteClass').live('click', function() {
- alert('Delete class and all sections of this class?');
- jQuery('.class'+ jQuery(this).parent().parent().attr("title")).remove();
+ if(confirm('Delete class and all sections of this class?')) {
+ jQuery('.class'+ jQuery(this).parent().parent().attr("title")).remove();
+ }
});
//--------------------------------------------------