PDA

View Full Version : [NOREPRO] Routing doesn't work on firefox



kt_sd
19 May 2014, 3:24 AM
When added route to the url and pressed enter, nothing happened.
works fine even in internet explorer

mitchellsimoens
19 May 2014, 3:47 AM
Can I get a test case? This test case works for me on Firefox:


Ext.define('Fiddle.controller.Main', {
extend : 'Ext.app.Controller',

routes : {
'foo' : 'onFoo'
},

onFoo : function() {
Ext.Msg.alert('Foo', 'Foo was reached!');
}
});

Ext.application({
name : 'Fiddle',

controllers : [
'Main'
]
});

kt_sd
20 May 2014, 11:46 PM
Ext.define('SDS.controller.orders.OrdersTableController',
{
extend : 'Ext.app.Controller',

[...]


routes :
{
'filterOrders/:filter' : 'filterOrders'
},


[...]


filterOrders : function(filter)
{
console.log(filter);
}

});



Sorry for the slow response.


As i wrote it works in every browser except firefox.

mitchellsimoens
21 May 2014, 4:48 AM
I'm still not able to reproduce the issue in firefox. With this code:


Ext.define('Fiddle.controller.Main', {
extend : 'Ext.app.Controller',

routes : {
'filterOrders/:filter' : 'filterOrders'
},

filterOrders : function(filter) {
console.log(filter);
}
});

Ext.application({
name : 'Fiddle',

controllers : [
'Main'
]
});

I use the hash #filterOrders/foo and it hit the filterOrders method in the controller.