From 8d8f74bce34df318affb98afeccecbfa200686c4 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 13 Oct 2010 15:14:19 +0200 Subject: [PATCH] fix bug in rest panel --- .../main/webapp/resources/js/sonia.rest.js | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.rest.js b/scm-webapp/src/main/webapp/resources/js/sonia.rest.js index 7465181042..c9c62b435e 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.rest.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.rest.js @@ -174,6 +174,7 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, { showAddForm: function(){ var form = this.editForm; + form.data = null; form.listeners = { submit: { fn: function(item){ @@ -343,25 +344,3 @@ Sonia.rest.RestPanel = Ext.extend(Ext.Panel,{ }); Ext.reg('restPanel', Sonia.rest.RestPanel); - -Sonia.rest.DetailWindow = Ext.extend(Ext.Window, { - - initComponent: function(){ - var config = { - layout:'fit', - width: 300, - autoScroll: true, - closable: false, - resizable: false, - plain: true, - border: false, - modal: true - }; - - Ext.apply(this, Ext.apply(this.initialConfig, config)); - Sonia.rest.DetailWindow.superclass.initComponent.apply(this, arguments); - } - -}); - -Ext.reg('restDetailWindow', Sonia.rest.DetailWindow);