X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/examples/feed-viewer/FeedWindow.js?ds=sidebyside diff --git a/examples/feed-viewer/FeedWindow.js b/examples/feed-viewer/FeedWindow.js index 55483d50..a253eabf 100644 --- a/examples/feed-viewer/FeedWindow.js +++ b/examples/feed-viewer/FeedWindow.js @@ -1,11 +1,9 @@ -/* - * Ext JS Library 2.2.1 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - +/*! + * Ext JS Library 3.1.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ FeedWindow = function() { this.feedUrl = new Ext.form.ComboBox({ id: 'feed-url', @@ -29,7 +27,7 @@ FeedWindow = function() { '{url}{text}', '
', ''), - store: new Ext.data.SimpleStore({ + store: new Ext.data.ArrayStore({ fields: ['url', 'text'], data : this.defaultFeeds }) @@ -57,7 +55,7 @@ FeedWindow = function() { buttons:[{ text: 'Add Feed!', - handler: this.onAdd, + handler: this.onFeedAdd, scope: this },{ text: 'Cancel', @@ -86,7 +84,7 @@ Ext.extend(FeedWindow, Ext.Window, { FeedWindow.superclass.show.apply(this, arguments); }, - onAdd: function() { + onFeedAdd: function() { this.el.mask('Validating Feed...', 'x-mask-loading'); var url = this.feedUrl.getValue(); Ext.Ajax.request({ @@ -127,4 +125,4 @@ Ext.extend(FeedWindow, Ext.Window, { } this.markInvalid(); } -}); \ No newline at end of file +});