@@ -34,7 +34,7 @@ | |||||
"public/css/bootstrap.css", | "public/css/bootstrap.css", | ||||
"public/css/bootstrap-responsive.css", | "public/css/bootstrap-responsive.css", | ||||
"public/css/font-awesome.css", | "public/css/font-awesome.css", | ||||
"public/css/app.css", | |||||
"public/css/desk.css", | |||||
"public/css/appframe.css", | "public/css/appframe.css", | ||||
"public/css/app_icon.css", | "public/css/app_icon.css", | ||||
"public/css/avatar.css", | "public/css/avatar.css", | ||||
@@ -62,7 +62,7 @@ | |||||
"public/js/frappe/ui/listing.js", | "public/js/frappe/ui/listing.js", | ||||
"public/js/frappe/request.js", | "public/js/frappe/request.js", | ||||
"public/js/frappe/router.js", | "public/js/frappe/router.js", | ||||
"public/js/frappe/app.js", | |||||
"public/js/frappe/desk.js", | |||||
"public/js/frappe/defaults.js", | "public/js/frappe/defaults.js", | ||||
"public/js/legacy/globals.js", | "public/js/legacy/globals.js", | ||||
@@ -318,7 +318,7 @@ frappe.urllib = { | |||||
// returns the base url with http + domain + path (-index.cgi or # or ?) | // returns the base url with http + domain + path (-index.cgi or # or ?) | ||||
get_base_url: function() { | get_base_url: function() { | ||||
var url= window.location.href.split('#')[0].split('?')[0].split('app.html')[0]; | |||||
var url= window.location.href.split('#')[0].split('?')[0].split('desk')[0]; | |||||
if(url.substr(url.length-1, 1)=='/') url = url.substr(0, url.length-1) | if(url.substr(url.length-1, 1)=='/') url = url.substr(0, url.length-1) | ||||
return url | return url | ||||
} | } | ||||
@@ -365,7 +365,7 @@ $.extend(_p, { | |||||
// replace relative links by absolute links | // replace relative links by absolute links | ||||
var prefix = window.location.href.split("app.html")[0] | |||||
var prefix = window.location.href.split("desk")[0] | |||||
// find unique matches | // find unique matches | ||||
var matches = $.unique(finished.match(/src=['"]([^'"]*)['"]/g) || []); | var matches = $.unique(finished.match(/src=['"]([^'"]*)['"]/g) || []); | ||||
@@ -88,7 +88,7 @@ login.call = function(args) { | |||||
login.login_handlers = { | login.login_handlers = { | ||||
200: function(data) { | 200: function(data) { | ||||
if(data.message=="Logged In") { | if(data.message=="Logged In") { | ||||
window.location.href = "app"; | |||||
window.location.href = "desk"; | |||||
} else if(data.message=="No App") { | } else if(data.message=="No App") { | ||||
if(localStorage) { | if(localStorage) { | ||||
var last_visited = localStorage.getItem("last_visited") || "/index"; | var last_visited = localStorage.getItem("last_visited") || "/index"; | ||||
@@ -1,7 +1,7 @@ | |||||
<!DOCTYPE html> | <!DOCTYPE html> | ||||
<head> | <head> | ||||
<meta charset="utf-8"> | <meta charset="utf-8"> | ||||
<title>Application</title> | |||||
<title>Frappe Desk</title> | |||||
<meta name="author" content=""> | <meta name="author" content=""> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> | <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> |
@@ -4,7 +4,7 @@ | |||||
from __future__ import unicode_literals | from __future__ import unicode_literals | ||||
no_sitemap = 1 | no_sitemap = 1 | ||||
base_template_path = "templates/pages/app.html" | |||||
base_template_path = "templates/pages/desk.html" | |||||
import frappe, os | import frappe, os | ||||
@@ -839,7 +839,7 @@ def get_url_to_form(doctype, name, base_url=None, label=None): | |||||
if not label: label = name | if not label: label = name | ||||
return """<a href="%(base_url)s/app.html#!Form/%(doctype)s/%(name)s">%(label)s</a>""" % locals() | |||||
return """<a href="%(base_url)s/desk#!Form/%(doctype)s/%(name)s">%(label)s</a>""" % locals() | |||||
def encode_dict(d, encoding="utf-8"): | def encode_dict(d, encoding="utf-8"): | ||||
for key in d: | for key in d: | ||||