TT#12776 Csc implement save button in callblocking

Implement "SAVE" button in call blocking module, to have in addition
to the existing "press ENTER to save" feature.

Also minor locales.js change due to duplicates.

Change-Id: I59d20d10b1aeba86241995ebb4f4e82f4ac75391
changes/83/12083/1
Robert Axelsen 8 years ago
parent 385ddadbdc
commit 280d3a9889

@ -897,13 +897,6 @@ Ext.define('Ngcp.csc.locales', {
de: 'secs',
fr: 'secs',
sp: 'secs'
},
save: {
en: 'SAVE',
it: 'SAVE',
de: 'SAVE',
fr: 'SAVE',
sp: 'SAVE'
}
},
filters: {
@ -1844,6 +1837,13 @@ Ext.define('Ngcp.csc.locales', {
fr: 'Save',
sp: 'Save'
},
save_caps: {
en: 'SAVE',
it: 'SAVE',
de: 'SAVE',
fr: 'SAVE',
sp: 'SAVE'
},
reset: {
en: 'Reset',
it: 'Reset',

@ -73,13 +73,25 @@ Ext.define('NgcpCsc.view.pages.callblocking.CallBlocking', {
margin: '20 0 10 0',
hidden: !this._displayIncomingOutgoingSection
}, {
xtype: 'textfield',
width: 300,
bind: '{new_number}',
listeners: {
specialkey: 'onEnterPressed'
},
hidden: !this._displayIncomingOutgoingSection
xtype: 'container',
layout: 'hbox',
hidden: !this._displayIncomingOutgoingSection,
margin: '0 0 10 0',
items: [{
xtype: 'textfield',
width: 300,
bind: '{new_number}',
height: 35,
listeners: {
specialkey: 'onEnterPressed'
}
}, {
xtype: 'button',
height: 35,
margin: '0 0 0 10',
text: Ngcp.csc.locales.common.save_caps[localStorage.getItem('languageSelected')],
handler: 'addNewNumber'
}]
}, {
xtype: 'container',
html: instructionText,

@ -5,7 +5,7 @@ Ext.define('NgcpCsc.view.pages.callblocking.CallBlockingController', {
onEnterPressed: function (field, el) {
if (el.getKey() == el.ENTER) {
this.addNewNumber(field, el);
this.addNewNumber();
};
},
@ -41,7 +41,7 @@ Ext.define('NgcpCsc.view.pages.callblocking.CallBlockingController', {
return ['1', '2', '3', '4', '5', '6', '7', '8', '9', '*', '?'];
},
addNewNumber: function (field, el) {
addNewNumber: function () {
var me = this;
var vm = me.getViewModel();
var invalidCheck = 0;

@ -408,7 +408,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainForm', {
}
}, {
xtype: 'button',
text: Ngcp.csc.locales.callforward.save[localStorage.getItem('languageSelected')],
text: Ngcp.csc.locales.common.save_caps[localStorage.getItem('languageSelected')],
id: 'onlineSaveButton',
width: 100,
listeners: {
@ -525,7 +525,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainForm', {
}
}, {
xtype: 'button',
text: Ngcp.csc.locales.callforward.save[localStorage.getItem('languageSelected')],
text: Ngcp.csc.locales.common.save_caps[localStorage.getItem('languageSelected')],
id: 'busySaveButton',
width: 100,
listeners: {
@ -642,7 +642,7 @@ Ext.define('NgcpCsc.view.pages.callforward.CallForwardMainForm', {
}
}, {
xtype: 'button',
text: Ngcp.csc.locales.callforward.save[localStorage.getItem('languageSelected')],
text: Ngcp.csc.locales.common.save_caps[localStorage.getItem('languageSelected')],
id: 'offlineSaveButton',
width: 100,
listeners: {

Loading…
Cancel
Save