mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-22 07:22:15 +01:00
use handleRestFailure instead of handleFailure
This commit is contained in:
@@ -205,8 +205,8 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
|
||||
},
|
||||
failure: function(result){
|
||||
this.el.unmask();
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
@@ -234,8 +234,8 @@ Sonia.config.ScmConfigPanel = Ext.extend(Sonia.config.ConfigPanel,{
|
||||
failure: function(result){
|
||||
el.unmask();
|
||||
clearTimeout(tid);
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
|
||||
@@ -54,8 +54,8 @@ Sonia.config.SimpleConfigForm = Ext.extend(Sonia.config.ConfigForm,{
|
||||
},
|
||||
failure: function(result){
|
||||
this.el.unmask();
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
null,
|
||||
this.failedText
|
||||
);
|
||||
@@ -79,8 +79,8 @@ Sonia.config.SimpleConfigForm = Ext.extend(Sonia.config.ConfigForm,{
|
||||
failure: function(result){
|
||||
el.unmask();
|
||||
clearTimeout(tid);
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
null,
|
||||
this.failedText
|
||||
);
|
||||
|
||||
@@ -81,8 +81,8 @@ Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
this.fireEvent('updateFailed', group);
|
||||
clearTimeout(tid);
|
||||
el.unmask();
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.updateErrorMsgText
|
||||
);
|
||||
@@ -124,8 +124,8 @@ Sonia.group.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
this.fireEvent('creationFailed', item);
|
||||
clearTimeout(tid);
|
||||
el.unmask();
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.createErrorMsgText
|
||||
);
|
||||
|
||||
@@ -119,8 +119,8 @@ Sonia.group.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
this.resetPanel();
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
|
||||
@@ -214,8 +214,8 @@ Sonia.panel.SyntaxHighlighterPanel = Ext.extend(Ext.Panel, {
|
||||
this.highlight();
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.loadErrorTitleText,
|
||||
this.loadErrorMsgText
|
||||
);
|
||||
|
||||
@@ -99,8 +99,8 @@ Sonia.plugin.Center = Ext.extend(Ext.util.Observable, {
|
||||
console.debug('plugin installation failed');
|
||||
}
|
||||
loadingBox.hide();
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.installFailedText
|
||||
);
|
||||
@@ -133,8 +133,8 @@ Sonia.plugin.Center = Ext.extend(Ext.util.Observable, {
|
||||
console.debug('plugin uninstallation failed');
|
||||
}
|
||||
loadingBox.hide();
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.uninstallFailedText
|
||||
);
|
||||
@@ -168,8 +168,8 @@ Sonia.plugin.Center = Ext.extend(Ext.util.Observable, {
|
||||
console.debug('plugin update failed');
|
||||
}
|
||||
loadingBox.hide();
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.updateFailedText
|
||||
);
|
||||
|
||||
@@ -120,8 +120,8 @@ Sonia.repository.CommitPanel = Ext.extend(Ext.Panel, {
|
||||
this.update(changeset)
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
|
||||
@@ -101,8 +101,8 @@ Sonia.repository.ImportWindow = Ext.extend(Ext.Window,{
|
||||
this.doLayout();
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
@@ -218,8 +218,8 @@ Sonia.repository.ImportWindow = Ext.extend(Ext.Window,{
|
||||
this.appendImported(obj);
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
|
||||
@@ -138,8 +138,8 @@ Sonia.repository.get = function(id, callback){
|
||||
execCallback(Ext.decode(response.responseText));
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status
|
||||
main.handleRestFailure(
|
||||
result
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -206,8 +206,8 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
this.resetPanel();
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
|
||||
@@ -51,8 +51,8 @@ Sonia.rest.JsonStore = Ext.extend( Ext.data.JsonStore, {
|
||||
if (debug){
|
||||
console.debug( 'error during store load, status: ' + status );
|
||||
}
|
||||
main.handleFailure(
|
||||
status,
|
||||
main.handleRestFailure(
|
||||
response,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
|
||||
@@ -134,8 +134,8 @@ Sonia.user.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
this.execCallback(this.onUpdate, item);
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.updateErrorMsgText
|
||||
);
|
||||
@@ -165,8 +165,8 @@ Sonia.user.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
this.execCallback(this.onCreate, user);
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.createErrorMsgText
|
||||
);
|
||||
|
||||
@@ -140,8 +140,8 @@ Sonia.user.Panel = Ext.extend(Sonia.rest.Panel, {
|
||||
this.resetPanel();
|
||||
},
|
||||
failure: function(result){
|
||||
main.handleFailure(
|
||||
result.status,
|
||||
main.handleRestFailure(
|
||||
result,
|
||||
this.errorTitleText,
|
||||
this.errorMsgText
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user