Suporte a enderecos relativos
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user