From: Chris Date: Tue, 18 Mar 2014 07:59:12 +0000 (+0800) Subject: Pman.Dialog.PersonEditor.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=fdea3af54f9ad6c70b3c3fd3eaad08be5badbc5f Pman.Dialog.PersonEditor.js --- 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' ] } } },