'ea4788705e6873b424c65e91c2846b19' :"Cancel",
'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
},
+ _named_strings : {
+ 'merge_display_name_fieldLabel' : '03e956f1dca2b4d525df03cb1899cb6f' /* Merge with */
+ },
dialog : false,
callback: false,
{
var _this = this;
this.dialog = Roo.factory({
+ xtype : 'LayoutDialog',
background : true,
closable : false,
collapsible : false,
resizable : false,
title : _this._strings['0b3e4317865feb6f0224397600b7cafc'] /* Merge Core Enum */,
width : 400,
- xns : Roo,
- '|xns' : 'Roo',
- xtype : 'LayoutDialog',
listeners : {
show : function (_self)
{
_this.merge.focus();
}
},
+ xns : Roo,
+ '|xns' : 'Roo',
center : {
+ xtype : 'LayoutRegion',
titlebar : false,
xns : Roo,
- '|xns' : 'Roo',
- xtype : 'LayoutRegion'
+ '|xns' : 'Roo'
},
buttons : [
{
- text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
- xns : Roo,
- '|xns' : 'Roo',
xtype : 'Button',
+ text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
listeners : {
click : function() {
_this.form.reset();
_this.dialog.hide();
}
- }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
},
{
- text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
- xns : Roo,
- '|xns' : 'Roo',
xtype : 'Button',
+ text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
listeners : {
- click : function() {
-
-
+ click : function()
+ {
+ if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){
+ Roo.MessageBox.confirm(
+ "Confirm",
+ "Are you sure '" + _this.data.display_name + "' Merge with '" + _this.form.findField('_merge_id').getRawValue() + "'",
+ function(res) {
+ if(res != 'yes') {
+ return;
+ }
+
+ _this.form.doAction('submit');
+ return;
+ }
+ );
+
+ return;
+ }
_this.form.doAction('submit');
}
- }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
}
],
items : [
{
+ xtype : 'ContentPanel',
background : true,
fitToFrame : true,
region : 'center',
xns : Roo,
'|xns' : 'Roo',
- xtype : 'ContentPanel',
items : [
{
+ xtype : 'Form',
method : 'POST',
style : 'margin: 5px',
url : baseURL + '/Roo/core_enum.php',
- xns : Roo.form,
- '|xns' : 'Roo.form',
- xtype : 'Form',
listeners : {
actioncomplete : function (_self, action)
{
_this.form = form;
}
},
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
items : [
{
+ xtype : 'ComboBox',
+ allowBlank : false,
alwaysQuery : true,
displayField : 'display_name',
editable : true,
triggerAction : 'all',
valueField : 'id',
width : 250,
- xns : Roo.form,
- '|xns' : 'Roo.form',
- xtype : 'ComboBox',
listeners : {
render : function (_self)
{
_this.merge = this;
}
},
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
store : {
+ xtype : 'Store',
remoteSort : true,
sortInfo : { direction : 'ASC', field: 'display_name' },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'Store',
listeners : {
beforeload : function (_self, o){
o.params = o.params || {};
o.params.active = 1;
o.params.etype = _this.data.etype;
o.params['!id'] = _this.data.id;
+
}
},
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
proxy : {
+ xtype : 'HttpProxy',
method : 'GET',
url : baseURL + '/Roo/Core_enum.php',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'HttpProxy'
+ '|xns' : 'Roo.data'
},
reader : {
+ xtype : 'JsonReader',
fields : [
{
"name":"id",
root : 'data',
totalProperty : 'total',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'JsonReader'
+ '|xns' : 'Roo.data'
}
}
},
{
+ xtype : 'Hidden',
name : 'id',
xns : Roo.form,
- '|xns' : 'Roo.form',
- xtype : 'Hidden'
+ '|xns' : 'Roo.form'
}
]
}