0
@@ -152,12 +152,12 @@ var TinyTab = Class.create();
0
'latest-files': function() {
0
if($('latest-assets').childNodes.length == 0)
0
- new Ajax.Request(
'/admin/assets;latest');
0
+ new Ajax.Request(
Mephisto.root + '/admin/assets;latest');
0
'search-files': function(q) {
0
- new Ajax.Request(
'/admin/assets;search', {parameters: 'q=' + escape(q)});
0
+ new Ajax.Request(
Mephisto.root + '/admin/assets;search', {parameters: 'q=' + escape(q)});
0
@@ -206,9 +206,8 @@ TinyTab.prototype = {
0
upload: function(form) {
0
- '/admin/articles/edit/105'
0
article_id = location.href.match(/\/edit\/([0-9]+)/);
0
- form.action =
"/admin/articles/upload"
0
+ form.action =
Mephisto.root + "/admin/articles/upload"
0
if(article_id) form.action += "/" + article_id[1]
0
@@ -299,7 +298,7 @@ var ArticleForm = {
0
getRevision: function() {
0
- var url =
'/admin/articles/edit/' + location.href.match(/\/edit\/([0-9]+)/)[1];
0
+ var url =
Mephisto.root + '/admin/articles/edit/' + location.href.match(/\/edit\/([0-9]+)/)[1];
0
if(rev != '0') url += "/" + rev;
0
@@ -314,11 +313,11 @@ Comments = {
0
toggle: function(chk) {
0
$('user-' + chk.getAttribute('value') + '-progress').show();
0
- new Ajax.Request(
'/admin/users/' + (chk.checked ? 'enable' : 'destroy') + '/' + chk.getAttribute('value'));
0
+ new Ajax.Request(
Mephisto.root + '/admin/users/' + (chk.checked ? 'enable' : 'destroy') + '/' + chk.getAttribute('value'));
0
toggleAdmin: function(chk) {
0
$('user-' + chk.getAttribute('value') + '-progress').show();
0
- new Ajax.Request(
'/admin/users/admin/' + chk.getAttribute('value'));
0
+ new Ajax.Request(
Mephisto.root + '/admin/users/admin/' + chk.getAttribute('value'));
0
@@ -348,7 +347,7 @@ var SectionForm = {
0
qu.push('sorted_ids[]=' + li.getAttribute('id').substr(container_id.length));
0
- new Ajax.Request(
'/admin/sections/order/' + section_id, {asynchronous:true, evalScripts:true, parameters:query});
0
+ new Ajax.Request(
Mephisto.root + '/admin/sections/order/' + section_id, {asynchronous:true, evalScripts:true, parameters:query});
0
@@ -511,6 +510,7 @@ ToolBox.prototype = {
0
+var Mephisto = { root: ''; }
0
Effect.DefaultOptions.duration = 0.25;
0
@@ -553,7 +553,7 @@ Event.addBehavior({
0
var img = this.down('img');
0
var pieces = img.src.split('/');
0
- new Ajax.Request(
'/admin/themes/show/' + pieces[pieces.length-1]);
0
+ new Ajax.Request(
Mephisto.root + '/admin/themes/show/' + pieces[pieces.length-1]);
0
//'.theme': function() {
Comments
No one has commented yet.