From fdea3af54f9ad6c70b3c3fd3eaad08be5badbc5f Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 18 Mar 2014 15:59:12 +0800 Subject: [PATCH] Pman.Dialog.PersonEditor.js --- Pman.Dialog.PersonEditor.js | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/Pman.Dialog.PersonEditor.js b/Pman.Dialog.PersonEditor.js index a46c34cf..86f83d85 100644 --- a/Pman.Dialog.PersonEditor.js +++ b/Pman.Dialog.PersonEditor.js @@ -482,32 +482,12 @@ Pman.Dialog.PersonEditor.prototype = { valueField : 'id', width : 280, store : { - xtype: 'Store', + xtype: 'SimpleStore', xns: Roo.data, - listeners : { - beforeload : function (_self, o){ - o.params = o.params || {}; - o.params.campaign_id = _this.data.project_id; - } - }, - isLocal : false, - proxy : { - xtype: 'HttpProxy', - xns: Roo.data, - method : 'GET', - url : baseURL + '/Roo/Clipping_journalist.php' - }, - reader : { - xtype: 'JsonReader', - xns: Roo.data, - id : 'id', - root : 'data', - totalProperty : 'total', - fields : [ - {"name":"id","type":"int"}, - {"name":"name","type":"string"} - ] - } + data : (function() { + return Pman.I18n.simpleStoreData('c'); + })(), + fields : [ 'code', 'title' ] } } }, -- 2.39.2