X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/examples/init.js diff --git a/examples/init.js b/examples/init.js index 4abad772..051dde89 100644 --- a/examples/init.js +++ b/examples/init.js @@ -30,7 +30,7 @@ Ext.ns('Ext.samples'); '', '

{title}

', '
', - '', + '', '
', '

{text}', '', @@ -61,20 +61,20 @@ Ext.ns('Ext.samples'); onContainerClick: function(e) { var group = e.getTarget('h2', 3, true); - + if (group) { group.up('div').toggleCls('collapsed'); } }, - + onItemClick : function(record, item, index, e){ var t = e.getTarget('dd', 5, true); - + if (t && !e.getTarget('a', 2)) { var url = t.getAttributeNS('ext', 'url'); window.open(url); } - + return this.callParent(arguments); } }); @@ -94,7 +94,7 @@ Ext.onReady(function() { var store = Ext.create('Ext.data.JsonStore', { idProperty : 'id', - fields : ['id', 'title', 'samples'], + fields : ['id', 'title', 'items'], data : catalog }); @@ -174,3 +174,4 @@ Ext.onReady(function() { },500)); }); +