Disable install button when installation is already in progress

This commit is contained in:
Kijin Sung 2016-02-07 10:29:25 +09:00
parent 5a7906252e
commit 2a0396f230
4 changed files with 9 additions and 1 deletions

View file

@ -84,6 +84,7 @@ $lang->ssl_options['optional'] = 'Optional';
$lang->ssl_options['always'] = 'Always';
$lang->about_database_file = 'Sqlite saves data in a file. Location of the database file should be unreachable by web<br/><span style="color:red">Data file should be inside the permission of 777.</span>';
$lang->success_installed = 'Installation has been completed.';
$lang->msg_installing = 'Installing...';
$lang->msg_cannot_proc = 'Installation environment is not proper to proceed.';
$lang->msg_already_installed = 'RhymiX is already installed.';
$lang->msg_dbconnect_failed = 'An error has occurred while connecting to DB. Please check DB information again.';

View file

@ -85,6 +85,7 @@ $lang->ssl_options['always'] = '항상 사용';
$lang->about_database_file = 'Sqlite는 파일에 데이터를 저장합니다. 데이터베이스 파일의 위치를 웹에서 접근할 수 없는 곳으로 해야 합니다.<br/><span style="color:red">데이터 파일은 777퍼미션 설정된 곳으로 지정해주세요.</span>';
$lang->success_installed = '설치가 되었습니다.';
$lang->msg_cannot_proc = '설치 환경이 갖춰지지 않아 요청을 실행할 수가 없습니다.';
$lang->msg_installing = '설치 중입니다...';
$lang->msg_already_installed = '이미 설치가 되어 있습니다.';
$lang->msg_dbconnect_failed = 'DB접속 오류가 발생하였습니다. DB정보를 다시 확인해주세요.';
$lang->msg_table_is_exists = '이미 DB에 테이블이 생성되어 있습니다. config 파일을 재생성하였습니다.';

View file

@ -37,4 +37,10 @@ jQuery(function($){
}
});
}
if($("#task-complete-install").size()) {
$("#task-complete-install").click(function() {
$("#task-complete-install").text($("#task-complete-install").data("installing"));
$("#task-complete-install").prop("disabled", true);
});
}
});

View file

@ -63,7 +63,7 @@
<a href="{getUrl('', 'act','dispInstallDBConfig')}" class="button grey">&laquo; {$lang->cmd_back}</a>
</div>
<div class="align-right">
<button type="submit" id="task-done" value="">{$lang->cmd_complete} &raquo;</button>
<button type="submit" id="task-complete-install" value="" data-installing="{$lang->msg_installing}">{$lang->cmd_complete} &raquo;</button>
</div>
</div>
</form>