Permalink
Browse files

Update search.

  • Loading branch information...
1 parent 52e3c47 commit 1e68c2a563b32a6cc9ae09b8aeb8bd30da284d85 @johnnywey committed Mar 22, 2011
Showing with 74 additions and 46 deletions.
  1. +74 −46 app/views/SearchField.js
View
120 app/views/SearchField.js
@@ -1,56 +1,84 @@
/**
* @class colocrew.views.SearchField
* @extends Ext.Panel
- *
+ *
*/
colocrew.views.SearchField = Ext.extend(Ext.Panel, {
- dockedItems: [{
- xtype: 'toolbar',
- title: 'Search',
- ui: 'dark',
- dock: 'top'
- }],
+ dockedItems: [
+ {
+ xtype: 'toolbar',
+ title: 'Search',
+ ui: 'dark',
+ dock: 'top',
+ cls: 'top-bar',
+ items:[
+ {xtype:'spacer'},
+ {
+ id: 'close',
+ text: 'Close',
+ ui: 'action',
+ listeners: {
+ 'tap': function () {
+ Ext.dispatch({
+ controller: colocrew.controllers.crew,
+ action: 'listCategory',
+ animation: {type:'slide', direction:'down'}
+ });
+ }
+ }
+ }
+ ]
+ }
+ ],
styleHtmlContent:true,
scroll: 'vertical',
- items: [{
- layout: {
- type : 'hbox',
- pack : 'center',
- align: 'stretch',
- items:[{
- xtype: 'radiofield',
- label: 'Name / Co',
- name: 'searchBy'
- }, {
- xtype: 'radiofield',
- label: 'Description',
- name: 'searchBy'
- }, {
- xtype: 'radiofield',
- label: 'All',
- name: 'searchBy'
- }, {
- xtype: 'searchfield',
- placeHolder: "Search...",
- name: "query",
- listeners: {
- // keyup: this.onFieldChange,
- scope: this
- }
- }, {
- xtype: 'button',
- text: 'Back',
- ui: 'normal',
- listeners: {
- 'tap': function () {
- Ext.dispatch({
- controller: colocrew.controllers.crew,
- action: 'listCategory',
- animation: {type:'slide', direction:'down'}
- });
+ items: [
+ {
+ layout: {
+ type : 'hbox',
+ pack : 'center',
+ align: 'stretch',
+ items:[
+ {
+ xtype: 'radiofield',
+ label: 'Name / Co',
+ name: 'searchBy'
+ },
+ {
+ xtype: 'radiofield',
+ label: 'Description',
+ name: 'searchBy'
+ },
+ {
+ xtype: 'radiofield',
+ label: 'All',
+ name: 'searchBy'
+ },
+ {
+ xtype: 'searchfield',
+ placeHolder: "Search...",
+ name: "query",
+ listeners: {
+ // keyup: this.onFieldChange,
+ scope: this
+ }
+ },
+ {
+ xtype: 'button',
+ text: 'Back',
+ ui: 'normal',
+ listeners: {
+ 'tap': function () {
+ Ext.dispatch({
+ controller: colocrew.controllers.crew,
+ action: 'listCategory',
+ animation: {type:'slide', direction:'down'}
+ });
+ }
+ }
}
- }
- }]
+ ]
+ }
}
- }]
+ ]
});

0 comments on commit 1e68c2a

Please sign in to comment.