removed unnecessary json url extension

This commit is contained in:
Sebastian Sdorra
2017-06-28 22:01:11 +02:00
parent 97abf3de0e
commit e734ff8268
5 changed files with 10 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ Sonia.git.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
var config = {
title : this.titleText,
configUrl: restUrl + 'config/repositories/git.json',
configUrl: restUrl + 'config/repositories/git',
items : [{
xtype: 'textfield',
name: 'repositoryDirectory',

View File

@@ -136,7 +136,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
var packageStore = new Ext.data.JsonStore({
storeId: 'pkgStore',
proxy: new Ext.data.HttpProxy({
url: restUrl + 'config/repositories/hg/packages.json',
url: restUrl + 'config/repositories/hg/packages',
disableCaching: false
}),
fields: [ 'id', 'hg-version', 'python-version', 'size' ],
@@ -151,7 +151,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
var hgInstallationStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: restUrl + 'config/repositories/hg/installations/hg.json'
url: restUrl + 'config/repositories/hg/installations/hg'
}),
fields: [ 'path' ],
reader: new Sonia.hg.InstallationJsonReader(),
@@ -161,7 +161,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
var pythonInstallationStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: restUrl + 'config/repositories/hg/installations/python.json'
url: restUrl + 'config/repositories/hg/installations/python'
}),
fields: [ 'path' ],
reader: new Sonia.hg.InstallationJsonReader(),
@@ -370,7 +370,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
});
Ext.Ajax.request({
url: restUrl + 'config/repositories/hg/packages/' + pkg + '.json',
url: restUrl + 'config/repositories/hg/packages/' + pkg,
method: 'POST',
scope: this,
timeout: 900000, // 15min

View File

@@ -125,7 +125,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
if (debug){
console.debug( 'load config from wizard and submit to server' );
}
self.loadConfig( self.el, 'config/repositories/hg/auto-configuration.json', 'POST', config );
self.loadConfig( self.el, 'config/repositories/hg/auto-configuration', 'POST', config );
} else {
if (debug){
console.debug( 'reload config' );
@@ -146,7 +146,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
onSubmit: function(values){
this.el.mask(this.submitText);
Ext.Ajax.request({
url: restUrl + 'config/repositories/hg.json',
url: restUrl + 'config/repositories/hg',
method: 'POST',
jsonData: values,
scope: this,
@@ -162,7 +162,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
},
onLoad: function(el){
this.loadConfig(el, 'config/repositories/hg.json', 'GET');
this.loadConfig(el, 'config/repositories/hg', 'GET');
},
loadConfig: function(el, url, method, config){

View File

@@ -55,7 +55,7 @@ Sonia.svn.ConfigPanel = Ext.extend(Sonia.config.SimpleConfigForm, {
var config = {
title : this.titleText,
configUrl: restUrl + 'config/repositories/svn.json',
configUrl: restUrl + 'config/repositories/svn',
items : [{
xtype: 'textfield',
name: 'repositoryDirectory',

View File

@@ -45,7 +45,7 @@ Sonia.group.Grid = Ext.extend(Sonia.rest.Grid, {
initComponent: function(){
var groupStore = new Sonia.rest.JsonStore({
proxy: new Ext.data.HttpProxy({
url: restUrl + 'groups.json',
url: restUrl + 'groups',
disableCaching: false
}),
idProperty: 'name',