Upload page seperated, styled and Javscript-pimped
Actual upload is not yet working.
This commit is contained in:
parent
c6cbdb3e3a
commit
107309a84c
6 changed files with 113 additions and 93 deletions
|
|
@ -37,3 +37,21 @@ load_reviews = function() {
|
|||
}
|
||||
);
|
||||
};
|
||||
|
||||
// Initialize the upload form.
|
||||
upload_form_init = function() {
|
||||
// Disable the submit button until files are selected.
|
||||
$('#file-submit').hide();
|
||||
|
||||
// Install event handler to notice when files were selected.
|
||||
$('#file').on('change', upload_form_files_selected);
|
||||
};
|
||||
|
||||
upload_form_files_selected = function() {
|
||||
no_files = this.files.length;
|
||||
if (no_files > 0) {
|
||||
$('#file-label').html(no_files+" files selected");
|
||||
$('#file-select-button').addClass('success');
|
||||
$('#file-submit').fadeIn('slow');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue