Loading template/app/view/Viewport.js +4 −4 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ Ext.define('Docs.view.Viewport', { this.tabBar.insert(0, {width: 7, xtype: 'container'}); this.on('resize', function(cls, w, h) { Docs.Settings.set('favorites-height', h) Docs.Settings.set('favorites-height', h); }); var favHeight = Docs.Settings.get('favorites-height'); if (favHeight) { Loading @@ -122,7 +122,7 @@ Ext.define('Docs.view.Viewport', { // Hack to fix a bug in localStorage which prevents the order of // items being saved when they're changed var store = Ext.getStore('Favorites'); store.getProxy().setIds(Ext.Array.map(store.data.items, function(i) { return i.data.id})) store.getProxy().setIds(Ext.Array.map(store.data.items, function(i) { return i.data.id; })); } } }, Loading @@ -138,10 +138,10 @@ Ext.define('Docs.view.Viewport', { ddPlugin.dragZone.onInitDrag = function() { Ext.getCmp('favorites-grid').addCls('drag'); Ext.view.DragZone.prototype.onInitDrag.apply(this, arguments); } }; ddPlugin.dragZone.afterValidDrop = ddPlugin.dragZone.afterInvalidDrop = function() { Ext.getCmp('favorites-grid').removeCls('drag'); } }; } } } Loading template/app/view/tree/Tree.js +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ Ext.define('Docs.view.tree.Tree', { // Ext.getStore("Favorites").on("load", function() { // this.rendered ? this.initFavIcons() : this.on("render", this.initFavIcons, this); // }, this); this.initFavIcons() this.initFavIcons(); }, initFavIcons: function() { Loading Loading
template/app/view/Viewport.js +4 −4 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ Ext.define('Docs.view.Viewport', { this.tabBar.insert(0, {width: 7, xtype: 'container'}); this.on('resize', function(cls, w, h) { Docs.Settings.set('favorites-height', h) Docs.Settings.set('favorites-height', h); }); var favHeight = Docs.Settings.get('favorites-height'); if (favHeight) { Loading @@ -122,7 +122,7 @@ Ext.define('Docs.view.Viewport', { // Hack to fix a bug in localStorage which prevents the order of // items being saved when they're changed var store = Ext.getStore('Favorites'); store.getProxy().setIds(Ext.Array.map(store.data.items, function(i) { return i.data.id})) store.getProxy().setIds(Ext.Array.map(store.data.items, function(i) { return i.data.id; })); } } }, Loading @@ -138,10 +138,10 @@ Ext.define('Docs.view.Viewport', { ddPlugin.dragZone.onInitDrag = function() { Ext.getCmp('favorites-grid').addCls('drag'); Ext.view.DragZone.prototype.onInitDrag.apply(this, arguments); } }; ddPlugin.dragZone.afterValidDrop = ddPlugin.dragZone.afterInvalidDrop = function() { Ext.getCmp('favorites-grid').removeCls('drag'); } }; } } } Loading
template/app/view/tree/Tree.js +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ Ext.define('Docs.view.tree.Tree', { // Ext.getStore("Favorites").on("load", function() { // this.rendered ? this.initFavIcons() : this.on("render", this.initFavIcons, this); // }, this); this.initFavIcons() this.initFavIcons(); }, initFavIcons: function() { Loading