diff options
author | Simon Rettberg | 2016-05-03 19:03:09 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-05-03 19:03:09 +0200 |
commit | 50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66 (patch) | |
tree | 05e99fdffa696434960d7c77966c0bc36d6339e8 /modules-available/minilinux/templates/page-minilinux.html | |
parent | Second half of merge.... (diff) | |
download | slx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.tar.gz slx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.tar.xz slx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.zip |
WIP
Diffstat (limited to 'modules-available/minilinux/templates/page-minilinux.html')
-rw-r--r-- | modules-available/minilinux/templates/page-minilinux.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules-available/minilinux/templates/page-minilinux.html b/modules-available/minilinux/templates/page-minilinux.html new file mode 100644 index 00000000..007e1e1b --- /dev/null +++ b/modules-available/minilinux/templates/page-minilinux.html @@ -0,0 +1,28 @@ +<div id="systemlist"> + <div class="panel panel-default">{{lang_listObtained}}</div> + <!-- OLD CODE ?? + <script type="text/javascript"> + var slx_check = setInterval(function() { + if (typeof $ === 'undefined') return; + clearInterval(slx_check); + $('#systemlist').load('{{{listurl}}}', function( response, status, xhr ) { + if ( status === "error" ) { + var msg = "{{lang_errorGetting}}"; + $( "#systemlist" ).html( msg + xhr.status + " " + xhr.statusText ); + } + }) + }, 100); + </script> + OLD CODE ?? --> +</div> + +<script type="text/javascript"><!-- + function loadSystemList(version) { + $('#systemlist').load('{{{listurl}}}', { token: TOKEN, version: version }, function( response, status, xhr ) { + if ( status === "error" ) { + var msg = "{{lang_errorGetting}}"; + $( "#systemlist" ).html( msg + xhr.status + " " + xhr.statusText ); + } + }); + } +// --></script>
\ No newline at end of file |