3
* Copyright(c) 2006-2009 Ext JS, LLC
5
* http://www.extjs.com/license
9
Ext.onReady(function(){
12
Ext.state.Manager.setProvider(new Ext.state.SessionProvider({state: Ext.appState}));
14
var tpl = Ext.Template.from('preview-tpl', {
16
getBody : function(v, all){
17
return Ext.util.Format.stripScripts(v || all.description);
20
FeedViewer.getTemplate = function(){
24
var feeds = new FeedPanel();
25
var mainPanel = new MainPanel();
27
feeds.on('feedselect', function(feed){
28
mainPanel.loadFeed(feed);
31
var viewport = new Ext.Viewport({
34
new Ext.BoxComponent({ // raw element
44
// add some default feeds
46
url:'http://feeds.feedburner.com/extblog',
47
text: 'ExtJS.com Blog'
51
url:'http://extjs.com/forum/external.php?type=RSS2',
52
text: 'ExtJS.com Forums'
56
url:'http://feeds.feedburner.com/ajaxian',
60
Ext.get('header').on('click', function() {
67
// This is a custom event handler passed to preview panels so link open in a new windw
68
FeedViewer.LinkInterceptor = {
71
'mousedown': function(e, t){ // try to intercept the easy way
74
'click': function(e, t){ // if they tab + enter a link, need to do it old fashioned way
75
if(String(t.target).toLowerCase() != '_blank'){
b'\\ No newline at end of file'