Author: damoxc

Revision: 4910

Log:
        clear the details pane when there are no selected torrents in the grid

Diff:
Modified: trunk/deluge/ui/web/js/deluge-details.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-details.js    2009-03-21 11:50:57 UTC (rev 
4909)
+++ trunk/deluge/ui/web/js/deluge-details.js    2009-03-21 11:53:05 UTC (rev 
4910)
@@ -31,7 +31,10 @@
        
        update: function(tab) { 
                var torrent = Deluge.Torrents.getSelected();
-               if (!torrent) return;
+               if (!torrent) {
+                       this.clear();
+                       return;
+               }
                
                tab = tab || this.Panel.getActiveTab();
                if (tab.update) {



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to