mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
removed unnecessary json url extension
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user