cvs: doc-editor /js main.js /js/locale fr.js
| From: | Yannick Torres | Date: | Sun, 19 Apr 2009 09:10:41 +0000 |
| Subject: | cvs: doc-editor /js main.js /js/locale fr.js | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3792@lists.php.net to get a copy of this message | ||
yannick Sun Apr 19 09:10:41 2009 UTC
Modified files:
/doc-editor/js/locale fr.js
/doc-editor/js main.js
Log:
- Add filter area to "Files Need Update" module to allow filter on the maitainer column
http://cvs.php.net/viewvc.cgi/doc-editor/js/locale/fr.js?r1=1.10&r2=1.11&diff_format=u
Index: doc-editor/js/locale/fr.js
diff -u doc-editor/js/locale/fr.js:1.10 doc-editor/js/locale/fr.js:1.11
--- doc-editor/js/locale/fr.js:1.10 Sun Apr 19 07:58:42 2009
+++ doc-editor/js/locale/fr.js Sun Apr 19 09:10:41 2009
@@ -126,6 +126,9 @@
i18n["Search result: {0}"] = "Résultat de la recherche : {0}";
i18n["Search: "] = "Recherche : ";
i18n["Your search must contain at least 3 characters"] = "Votre recherche doit
comporter au moins 3 caractères";
+i18n["Filter: "] = "Filtrer : ";
+i18n["Your filter must contain at least 3 characters"] = "Votre filtre doit
comporter au moins 3 caractères";
+
// Main Menu
i18n["Main Menu"] = "Menu principal";
http://cvs.php.net/viewvc.cgi/doc-editor/js/main.js?r1=1.44&r2=1.45&diff_format=u
Index: doc-editor/js/main.js
diff -u doc-editor/js/main.js:1.44 doc-editor/js/main.js:1.45
--- doc-editor/js/main.js:1.44 Sun Apr 19 07:58:42 2009
+++ doc-editor/js/main.js Sun Apr 19 09:10:41 2009
@@ -3933,6 +3933,49 @@
}),
autoExpandColumn: 'name',
bodyBorder: false,
+ tbar:[
+ _('Filter: '), ' ',
+ new Ext.form.TwinTriggerField({
+ id: 'FNU-filter',
+ validationEvent:false,
+ validateOnBlur:false,
+ trigger1Class:'x-form-clear-trigger',
+ trigger2Class:'x-form-search-trigger',
+ hideTrigger1:true,
+ width:180,
+ scope: this,
+ enableKeyEvents: true,
+ listeners: {
+ keypress: function(field, e){
+ if (e.getKey() == e.ENTER) {
+ this.onTrigger2Click();
+ }
+ }
+ },
+ onTrigger1Click: function() {
+
+ this.setValue('');
+ this.triggers[0].hide();
+
+ this.scope.storeFilesNeedUpdate.clearFilter();
+ },
+ onTrigger2Click: function() {
+
+ var v = this.getValue();
+
+ if( v == '' || v.length < 3) {
+ this.markInvalid(_('Your filter must contain at least 3
characters'));
+ return;
+ }
+ this.clearInvalid();
+
+ this.triggers[0].show();
+
+ this.scope.storeFilesNeedUpdate.filter('maintainer', v);
+
+ }
+ })
+ ],
listeners: {
scope: this,
'rowcontextmenu': function(grid, rowIndex, e){
@@ -7041,7 +7084,13 @@
iconCls: 'FilesNeedUpdate',
hidden: (this.userLang === 'en') ? true : false,
items: [gridFilesNeedUpdate],
- collapsed: true
+ collapsed: true,
+ listeners: {
+ expand: function(panel) {
+ //TODO: try to find a better way to handle this. If we
don't do this, twinTrigger's field is not render because this panel is hidden at the load
time
+ Ext.getCmp('FNU-filter').wrap.setWidth(200);
+ }
+ }
}, {
title: _('Error in current translation')+' - <em
id="acc-error-nb">0</em>',
id: 'acc-error',