Mercurial > libervia-web
diff browser_side/base_widget.py @ 396:a71fcc27f231
browser_side: small improvements for ListManager
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 11 Mar 2014 10:45:52 +0100 |
parents | 30d03d9f07e4 |
children | 8ecc5a7062e4 |
line wrap: on
line diff
--- a/browser_side/base_widget.py Mon Mar 10 22:39:26 2014 +0100 +++ b/browser_side/base_widget.py Tue Mar 11 10:45:52 2014 +0100 @@ -107,6 +107,7 @@ return (row.rowIndex, cell.cellIndex) def onDrop(self, event): + self.removeStyleName('dragover') DOM.eventPreventDefault(event) dt = event.dataTransfer # 'text', 'text/plain', and 'Text' are equivalent. @@ -135,14 +136,10 @@ if len(row_wids) == 1 and wid_row == widgets_panel.getWidgetCoords(self)[0]: # the dropped widget is the only one in the same row # as the target widget (self), we don't do anything - self.removeStyleName('dragover') return widgets_panel.removeWidget(_new_panel) elif item_type in self.drop_keys: _new_panel = self.drop_keys[item_type](self.host, item) - elif item_type == "CONTACT_TEXTBOX": - # eventually open a window? - pass else: print "WARNING: unmanaged item type" return @@ -677,9 +674,6 @@ _new_panel.getWidgetsPanel().removeWidget(_new_panel) elif item_type in DropCell.drop_keys: _new_panel = DropCell.drop_keys[item_type](self.tab_panel.host, item) - elif item_type == "CONTACT_TEXTBOX": - # eventually open a window? - pass else: print "WARNING: unmanaged item type" return