Start working on a folders support.

This commit is contained in:
Paulo Gustavo Veiga
2012-05-23 21:54:03 -03:00
parent 5498c681a4
commit 9bc4504aea
7 changed files with 157 additions and 143 deletions

View File

@@ -71,7 +71,7 @@ jQuery.fn.dialogForm = function(options) {
$("#" + containerId).find('input').attr('value', '');
}
// Reset button state ...
// Clear button "Saving..." state ...
var acceptBtn = $('#' + containerId + ' .btn-accept');
acceptBtn.button('reset');
@@ -107,14 +107,13 @@ jQuery.fn.dialogForm = function(options) {
var fieldErrors = errors.fieldErrors;
if (fieldErrors) {
for (var fieldName in fieldErrors) {
// Mark the field ...
// Mark the field with errors ...
var message = fieldErrors[fieldName];
var inputField = $("#" + containerId + " input[name='" + fieldName + "']");
$("#" + containerId).find(".errorMessage").text(message).addClass("alert alert-error");
inputField.parent().addClass('error');
}
}
} else {