Browse Source

modproxy fix

pull/69/head
Ruud 14 years ago
parent
commit
1a9d15ecc2
  1. 2
      couchpotato/runner.py
  2. 2
      couchpotato/static/scripts/couchpotato.js
  3. 2
      couchpotato/static/scripts/page.js
  4. 2
      couchpotato/static/scripts/page/settings.js

2
couchpotato/runner.py

@ -173,7 +173,7 @@ def runCouchPotato(options, base_path, args, handle = None):
} }
# Static path # Static path
web.add_url_rule(url_base + '/static/<path:filename>', web.add_url_rule('static/<path:filename>',
endpoint = 'static', endpoint = 'static',
view_func = app.send_static_file) view_func = app.send_static_file)

2
couchpotato/static/scripts/couchpotato.js

@ -193,7 +193,7 @@ var Route = new Class({
parse: function(url_string){ parse: function(url_string){
var self = this; var self = this;
var path = History.getPath().replace(Api.getOption('url'), '/') //Remove API front var path = History.getPath().replace(App.getOption('base_url'), '/')
var current = path.replace(/^\/+|\/+$/g, '') var current = path.replace(/^\/+|\/+$/g, '')
var url = current.split('/') var url = current.split('/')

2
couchpotato/static/scripts/page.js

@ -21,7 +21,7 @@ var PageBase = new Class({
if(self.has_tab){ if(self.has_tab){
var nav = App.getBlock('navigation'); var nav = App.getBlock('navigation');
self.tab = nav.addTab({ self.tab = nav.addTab({
'href': '/'+self.name, 'href': App.createUrl(self.name),
'title': self.title, 'title': self.title,
'text': self.name.capitalize() 'text': self.name.capitalize()
}); });

2
couchpotato/static/scripts/page/settings.js

@ -152,7 +152,7 @@ Page.Settings = new Class({
var label = (tab.label || tab.name || tab_name).capitalize() var label = (tab.label || tab.name || tab_name).capitalize()
var tab_el = new Element('li.t_'+tab_name).adopt( var tab_el = new Element('li.t_'+tab_name).adopt(
new Element('a', { new Element('a', {
'href': '/'+self.name+'/'+tab_name+'/', 'href': App.createUrl(self.name+'/'+tab_name),
'text': label 'text': label
}).adopt() }).adopt()
).inject(self.tabs_container); ).inject(self.tabs_container);

Loading…
Cancel
Save