Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0023597 | Openbravo ERP | A. Platform | public | 2013-04-19 18:09 | 2013-04-23 16:57 |
Reporter | dbaz | ||||
Assigned To | dbaz | ||||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 3.0MP23 | |||
Merge Request Status | |||||
Review Assigned To | AugustoMauch | ||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0023597: Add capabilities to overwritte a particular existing button of the toolbar | ||||
Description | Add capabilities to overwritte a particular existing button of the toolbar. The fix should not force to update any existing module, so the function 'registerButton' should behave as before with the new property 'overwriteIfExists' as null | ||||
Steps To Reproduce | To test the new functionality, you can just write this into the Firebug console. After it, open a tab, modify any record and press "Save" button. NEW_SAVE_BUTTON = { action: function () { alert('Hello, this is the new save button functionality'); }, disabled: true, buttonType: 'save', prompt: OB.I18N.getLabel('OBUIAPP_SaveRow'), updateState: function () { var view = this.view, form = view.viewForm, hasErrors = false, editRow; if (view.isShowingForm) { this.setDisabled(!(form.isNew && form.allRequiredFieldsSet()) && (form.isSaving || form.readOnly || !view.hasValidState() || form.hasErrors() || !form.hasChanged || !form.allRequiredFieldsSet())); } else if (view.isEditingGrid) { form = view.viewGrid.getEditForm(); editRow = view.viewGrid.getEditRow(); hasErrors = view.viewGrid.rowHasErrors(editRow); this.setDisabled(!(form.isNew && form.allRequiredFieldsSet()) && !hasErrors && (form.isSaving || form.readOnly || !view.hasValidState() || form.hasErrors() || !form.hasChanged || !form.allRequiredFieldsSet())); } else { this.setDisabled(true); } }, keyboardShortcutId: 'ToolBar_Save' }, OB.ToolbarRegistry.registerButton(NEW_SAVE_BUTTON.buttonType, isc.OBToolbarIconButton, NEW_SAVE_BUTTON, 30, null, true); | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-04-19 18:09 | dbaz | New Issue | |||
2013-04-19 18:09 | dbaz | Assigned To | => dbaz | ||
2013-04-19 18:09 | dbaz | Modules | => Core | ||
2013-04-19 18:09 | dbaz | OBNetwork customer | => No | ||
2013-04-19 18:09 | dbaz | Triggers an Emergency Pack | => No | ||
2013-04-19 18:13 | dbaz | Review Assigned To | => AugustoMauch | ||
2013-04-19 18:13 | dbaz | Issue Monitored: AugustoMauch | |||
2013-04-19 18:17 | hgbot | Checkin | |||
2013-04-19 18:17 | hgbot | Note Added: 0058062 | |||
2013-04-19 18:17 | hgbot | Status | new => resolved | ||
2013-04-19 18:17 | hgbot | Resolution | open => fixed | ||
2013-04-19 18:17 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/c09f69635bed61fe9ef335345ac8ae534a966d18 [^] | ||
2013-04-19 18:19 | dbaz | Note Added: 0058064 | |||
2013-04-22 16:36 | hudsonbot | Checkin | |||
2013-04-22 16:36 | hudsonbot | Note Added: 0058106 | |||
2013-04-23 16:57 | AugustoMauch | Note Added: 0058140 | |||
2013-04-23 16:57 | AugustoMauch | Status | resolved => closed | ||
2013-04-23 16:57 | AugustoMauch | Fixed in Version | => 3.0MP23 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|