Don't work with non-existing IDs
authorJoey Schulze <joey@infodrom.org>
Wed, 24 Mar 2010 19:26:18 +0000 (20:26 +0100)
committerJoey Schulze <joey@infodrom.org>
Wed, 24 Mar 2010 19:26:18 +0000 (20:26 +0100)
lib/functions.js

index fd65cd4..8c983b5 100644 (file)
@@ -230,6 +230,8 @@ function gridDrillDown(e)
     if (!cell) return;
     var value = cell.innerHTML;
 
+    if (!value.length || value == '&nbsp;') return;
+
     if (document.getElementById('details')) {
        var params = 'source=' + grid.tableId.substr(5) + '&id=' + value;
        ajax_request('details', params, details_callback);