Whole bunch of style-related changes, including some tasty hackery for the experience and education fields.

This commit is contained in:
Samantha Doherty
2011-03-15 13:08:41 -04:00
parent 4f217a3133
commit b37c33dea2
3 changed files with 164 additions and 46 deletions

View File

@@ -12,6 +12,9 @@ var reorder = function(class) {
replaceIndex(rowIndex(div), i);
});
$this = $(divs).last().closest('tr');
$this.addClass('supersizeme');
$(divs).last().find('a.add_row').show();
if (divs.length == 1) {
@@ -57,7 +60,8 @@ var addRow = function() {
var class = $(div).attr('class');
var index = id.match(/\d+/);
console.log("Current row = " + index + ', class = ' + class);
var tr = $(this).closest('tr');
var trold = $(this).closest('tr');
var tr = $(trold).removeClass('supersizeme');
var newtr = $(tr).clone();
var newIndex = parseInt(index) + 1;
replaceIndex(newtr, index, newIndex);
@@ -95,4 +99,4 @@ function() {
$('.remove_row').live('click', removeRow);
}
);
);