this.loadDefaults = function() {
var self = this;
-// $.getJSON("/backend/logged_in", function(resp) {
+// $.getJSON("backend/logged_in", function(resp) {
// if (!resp.contents) {
self.hideMenu();
self.hideBackground();
};
this.loadMenuItems = function() {
- $.getJSON("/backend/get_menu", function(resp) {
+ $.getJSON("backend/get_menu", function(resp) {
if (resp.success) {
navStr = '<ul class="nav">';
$.each(resp.contents, function(key, val) {
this.loadLogin = function() {
$.ajax({
- url: "/backend/login_modal",
+ url: "backend/login_modal",
success: function (data) {
$('body').append(data);
$('#loginModal').modal({
'password': $('#inputPassword').val()
};
self = this;
- $.post('/account/login', loginData, function(resp) {
+ $.post('account/login', loginData, function(resp) {
if (resp.success) {
document.cookie = "session_id="+resp.data.sid+";expires=0";
self.setUsername(resp.data.name);
}
this.openApp = function(appid) {
- $.getJSON("/control/open/"+appid, function(resp) {
+ $.getJSON("control/open/"+appid, function(resp) {
if (resp.success) {
var repl = resp.contents
var target = 'div#'+repl.name+repl.id;