1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

Refactor contacts app.

This commit is contained in:
xiez
2012-07-30 19:47:11 +08:00
parent 61a3ac1409
commit 0084b1217e
7 changed files with 142 additions and 104 deletions

View File

@@ -127,3 +127,11 @@ function prepareCSRFToken(xhr, settings) {
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
}
}
function apply_form_error(formid, error_msg) {
var form_err = $("#" + formid + " .error"),
container = $("#simplemodal-container");
form_err.html(error_msg).attr('class', 'error');
container.css('height', $('#'+formid).height());
}