Include new Server.js

pull/2152/head
Isaac Connor 2018-07-09 14:10:06 -04:00
parent 3d1fe728f1
commit ebe55cf6a4
2 changed files with 14 additions and 0 deletions

12
web/js/Server.js Normal file
View File

@ -0,0 +1,12 @@
class Server {
constructor(json) {
for( var k in json ) {
this[k] = json[k];
}
}
url(port=0){
return location.protocol+'//'+this.Hostname+
(port ? ':'+port : '') +
( ( this.PathPrefix && this.PathPrefix != 'null') ? this.PathPrefix : '');
}
};

View File

@ -119,6 +119,8 @@ echo output_link_if_exists( array(
<script src="skins/<?php echo $skin; ?>/js/chosen/chosen.jquery.min.js"></script>
<script src="skins/<?php echo $skin; ?>/js/dateTimePicker/jquery-ui-timepicker-addon.js"></script>
<script src="<?php echo cache_bust('js/Server.js'); ?>"></script>
<script>
//<![CDATA[
<!--