styled import page

This commit is contained in:
Tom Giannattasio
2012-10-12 10:36:02 -04:00
committed by Calen Pennington
parent c2abd4b537
commit c7cdaf8080
5 changed files with 108 additions and 9 deletions

View File

@@ -51,8 +51,22 @@ $(document).ready(function() {
$('.remove-policy-data').bind('click', removePolicyMetadata);
$('.sync-date').bind('click', syncReleaseDate);
// import form setup
$('.import .file-input').bind('change', showImportSubmit);
$('.import .choose-file-button, .import .choose-file-button-inline').bind('click', function(e) {
e.preventDefault();
$('.import .file-input').click();
});
});
function showImportSubmit(e) {
$('.file-name').html($(this).val())
$('.file-name-block').show();
$('.import .choose-file-button').hide();
$('.submit-button').show();
}
function syncReleaseDate(e) {
e.preventDefault();
$("#start_date").val("");