Suporte a enderecos relativos

This commit is contained in:
2008-03-02 18:30:31 -03:00
parent 5e4951fa47
commit c5cb69f277
20 changed files with 41 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
events['.color_radio:click'] = function(element, e) {
style = document.createElement('link');
style.rel = 'Stylesheet';
style.href = "/stylesheets/themes/color." + element.value + ".css";
style.href = BASE_PATH + "/stylesheets/themes/color." + element.value + ".css";
$$('head')[0].appendChild(style);
}

View File

@@ -2,7 +2,7 @@ events['#show_preview:click'] = function(element, e)
{
spinner_start("preview");
new Ajax.Updater('wiki_preview', '/services/preview', {
new Ajax.Updater('wiki_preview', BASE_PATH + '/services/preview', {
parameters: {
text: $$('textarea')[0].value
},