about added
This commit is contained in:
parent
8916d47b12
commit
18f72e4f62
19
index.html
19
index.html
|
@ -309,6 +309,7 @@
|
||||||
<li><a href="#" onclick="custom_global_settings()">Global settings</a></li>
|
<li><a href="#" onclick="custom_global_settings()">Global settings</a></li>
|
||||||
<li><a href="#" onclick="custom_global_statistics()">Global Statistics</a></li>
|
<li><a href="#" onclick="custom_global_statistics()">Global Statistics</a></li>
|
||||||
<li><a id="newDownload" href="#">Add Download</a></li>
|
<li><a id="newDownload" href="#">Add Download</a></li>
|
||||||
|
<li><a href="#" onclick="show_about()">About</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div><!--/.nav-collapse -->
|
</div><!--/.nav-collapse -->
|
||||||
</div>
|
</div>
|
||||||
|
@ -348,6 +349,24 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- error connection end }}}-->
|
<!-- error connection end }}}-->
|
||||||
|
|
||||||
|
<!--{{{ About template -->
|
||||||
|
<div class="modal hide" id="about_modal">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button class="close" data-dismiss="modal">x</button>
|
||||||
|
<h3>About </h3>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p>
|
||||||
|
Aria2 version: <span class="about_aria_version"></span>
|
||||||
|
<br>
|
||||||
|
Web-Client status: <span class="about_webclient_version"></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<a href="#" onclick="clear_dialogs()" class="btn">Close</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- About end }}}-->
|
||||||
<!--{{{ global statistics template -->
|
<!--{{{ global statistics template -->
|
||||||
<div class="modal hide" id="global_statistics_modal">
|
<div class="modal hide" id="global_statistics_modal">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
|
|
13
js/script.js
13
js/script.js
|
@ -4,6 +4,7 @@ var modals = {
|
||||||
newDownload_modal: undefined,
|
newDownload_modal: undefined,
|
||||||
global_settings_modal: undefined,
|
global_settings_modal: undefined,
|
||||||
global_statistics_modal: undefined,
|
global_statistics_modal: undefined,
|
||||||
|
about_modal: undefined,
|
||||||
download_settings_modal: undefined
|
download_settings_modal: undefined
|
||||||
};
|
};
|
||||||
var web_sock = undefined;
|
var web_sock = undefined;
|
||||||
|
@ -165,6 +166,7 @@ $(function() {
|
||||||
modals.global_settings_modal = $('#global_settings_modal').modal(modal_conf);
|
modals.global_settings_modal = $('#global_settings_modal').modal(modal_conf);
|
||||||
modals.download_settings_modal = $('#download_settings_modal').modal(modal_conf);
|
modals.download_settings_modal = $('#download_settings_modal').modal(modal_conf);
|
||||||
modals.global_statistics_modal = $('#global_statistics_modal').modal(modal_conf);
|
modals.global_statistics_modal = $('#global_statistics_modal').modal(modal_conf);
|
||||||
|
modals.about_modal = $('#about_modal').modal(modal_conf);
|
||||||
|
|
||||||
if(WebSocket)
|
if(WebSocket)
|
||||||
web_sock_init();
|
web_sock_init();
|
||||||
|
@ -799,3 +801,14 @@ function custom_global_statistics() {
|
||||||
var tmpl = $('#global_statistics_template').text();
|
var tmpl = $('#global_statistics_template').text();
|
||||||
modals.global_statistics_modal.modal('show');
|
modals.global_statistics_modal.modal('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function show_about() {
|
||||||
|
aria_syscall({
|
||||||
|
func: 'getVersion',
|
||||||
|
success: function(data) {
|
||||||
|
$('.about_aria_version').text(data.result.version);
|
||||||
|
$('.about_webclient_version').text('beta testing');
|
||||||
|
modals.about_modal.modal('show');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user