Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #393 from xiaodoudou/master
Browse files Browse the repository at this point in the history
Bugfix: add missing baseURL inside templates and dashboard config
  • Loading branch information
etiennemargraff authored Jan 19, 2017
2 parents d939f99 + 4c58030 commit 75e6110
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Server/public/javascripts/dashboard-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $.get(VORLON.DashboardManager.CatalogUrl, function(data) {
folder: data[plugin].foldername
}

$('.plugins-list').append('<li class="plugin-'+tmp.id+'" data-id="'+tmp.id+'"><div class="calque"></div><h4><img src="'+VORLON.DashboardManager.vorlonBaseURL+'/getplugin/'+tmp.folder+'/icon" alt="icon"> <input data-id="'+tmp.id+'" type="text" value="'+tmp.name+'"> <span>'+tmp.name+' </span><i class="fa fa-pencil"></i></h4><img src="images/nodejs.png" title="'+tmp.nodeText+'" data-placement="top" alt="nodeCompliant" class="'+tmp.nodeClass+' nodeCompliant"><div class="panel_option"><label for="panel_select">Panel</label><select data-id="'+tmp.id+'" id="panel_select" class="panel_select"><option '+tmp.selectedTop+' value="top">Top</option><option value="bottom" '+tmp.selectedBottom+'>Bottom</option></select></div><div class="state_option"><label>State<input id="cb-'+tmp.id+'" '+tmp.checked+' type="checkbox" class="tgl tgl-skewed" data-id="'+tmp.id+'"><label data-tg-off="OFF" data-tg-on="ON" for="cb-'+tmp.id+'" class="tgl-btn"></label></label></div><i class="fa fa-arrows" aria-hidden="true"></i></li>');
$('.plugins-list').append('<li class="plugin-'+tmp.id+'" data-id="'+tmp.id+'"><div class="calque"></div><h4><img src="'+VORLON.DashboardManager.vorlonBaseURL+'/getplugin/'+tmp.folder+'/icon" alt="icon"> <input data-id="'+tmp.id+'" type="text" value="'+tmp.name+'"> <span>'+tmp.name+' </span><i class="fa fa-pencil"></i></h4><img src="'+VORLON.DashboardManager.vorlonBaseURL+'/images/nodejs.png" title="'+tmp.nodeText+'" data-placement="top" alt="nodeCompliant" class="'+tmp.nodeClass+' nodeCompliant"><div class="panel_option"><label for="panel_select">Panel</label><select data-id="'+tmp.id+'" id="panel_select" class="panel_select"><option '+tmp.selectedTop+' value="top">Top</option><option value="bottom" '+tmp.selectedBottom+'>Bottom</option></select></div><div class="state_option"><label>State<input id="cb-'+tmp.id+'" '+tmp.checked+' type="checkbox" class="tgl tgl-skewed" data-id="'+tmp.id+'"><label data-tg-off="OFF" data-tg-on="ON" for="cb-'+tmp.id+'" class="tgl-btn"></label></label></div><i class="fa fa-arrows" aria-hidden="true"></i></li>');

$(document).tooltip({
position: {
Expand Down Expand Up @@ -125,4 +125,4 @@ $(".search-config input").keydown(function (e) {
if(e.which == 13 || e.which == 27) {
$('.config-wrapper .fa-search').trigger('click');
}
});
});
2 changes: 1 addition & 1 deletion Server/views/httpproxy.jade
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ html(lang='en')

div.home
div.top
img.logo(src="/images/VorlonLogo_Smooth.svg", alt="Vorlon logo" )
img.logo(src=baseURL + "/images/VorlonLogo_Smooth.svg", alt="Vorlon logo" )
div.form
div.message Vorlon proxy allows you to use Vorlon on an existing website. Just enter the website url, and click on the button. Couldn't be easier !
div.input
Expand Down
4 changes: 2 additions & 2 deletions Server/views/httpproxyerror.jade
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ html(lang='en')

div.home
div.top
img.logo(src="/images/VorlonLogo_Smooth.svg", alt="Vorlon logo" )
img.logo(src=baseURL + "/images/VorlonLogo_Smooth.svg", alt="Vorlon logo" )
div.form
div.message error
div.message error
4 changes: 2 additions & 2 deletions Server/views/includes/dashboard-config.jade
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
section.dashboard-initial
section.config-wrapper
h2.plugin-title
img.machine(src="images/machine.png")
img.machine(src=baseURL + "/images/machine.png")
span Plugins available <em>(<span class="countPlugins">0</span>)</em> :
div.search-config
i.fa.fa-search
input(type="text")
div.plugins-list-wrapper
ul.plugins-list
div.clear
div.clear
div.clear

0 comments on commit 75e6110

Please sign in to comment.