CC-2184: Hardcoded CSS path should be relative path instead
-missed some paths
This commit is contained in:
parent
f50b93f886
commit
e22a573d8a
|
@ -398,7 +398,7 @@ function setSwitchListener(ele){
|
||||||
var sourcename = $(ele).attr('id');
|
var sourcename = $(ele).attr('id');
|
||||||
var status_span = $(ele).find("span");
|
var status_span = $(ele).find("span");
|
||||||
var status = status_span.html();
|
var status = status_span.html();
|
||||||
$.get(baseUrl+"/Dashboard/switch-source/format/json/sourcename/"+sourcename+"/status/"+status, function(data){
|
$.get(baseUrl+"Dashboard/switch-source/format/json/sourcename/"+sourcename+"/status/"+status, function(data){
|
||||||
if(data.error){
|
if(data.error){
|
||||||
alert(data.error);
|
alert(data.error);
|
||||||
}else{
|
}else{
|
||||||
|
@ -415,7 +415,7 @@ function setSwitchListener(ele){
|
||||||
function kickSource(ele){
|
function kickSource(ele){
|
||||||
var sourcename = $(ele).attr('id');
|
var sourcename = $(ele).attr('id');
|
||||||
|
|
||||||
$.get(baseUrl+"/Dashboard/disconnect-source/format/json/sourcename/"+sourcename, function(data){
|
$.get(baseUrl+"Dashboard/disconnect-source/format/json/sourcename/"+sourcename, function(data){
|
||||||
if(data.error){
|
if(data.error){
|
||||||
alert(data.error);
|
alert(data.error);
|
||||||
}
|
}
|
||||||
|
@ -435,7 +435,7 @@ function init() {
|
||||||
|
|
||||||
$('.listen-control-button').click(function() {
|
$('.listen-control-button').click(function() {
|
||||||
if (stream_window == null || stream_window.closed)
|
if (stream_window == null || stream_window.closed)
|
||||||
stream_window=window.open(baseUrl+"/Dashboard/stream-player", 'name', 'width=400,height=158');
|
stream_window=window.open(baseUrl+"Dashboard/stream-player", 'name', 'width=400,height=158');
|
||||||
stream_window.focus();
|
stream_window.focus();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
@ -460,7 +460,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
$('#current-user').live('click', function() {
|
$('#current-user').live('click', function() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: baseUrl+'/user/edit-user/format/json'
|
url: baseUrl+'user/edit-user/format/json'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue