/[drupal]/contributions/modules/ubrowser/ubrowser.js
ViewVC logotype

Diff of /contributions/modules/ubrowser/ubrowser.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Thu Feb 8 16:42:38 2007 UTC revision 1.2, Fri Feb 9 16:16:40 2007 UTC
# Line 1  Line 1 
1  // $Id$  // $Id$
2    
3  // Used to return the uBrowser div to normal if it's closed.  // Used to return the uBrowser div to normal if it's closed.
4  var oldcontents = '';  var oldcontents = null;
5    
6  // Used to keep from performing the same search twice in a row.  // Used to keep from performing the same search twice in a row.
7  var lastsearch = '';  var lastsearch = '';
# Line 10  var lastsearch = ''; Line 10  var lastsearch = '';
10   * Load uBrowser into the div specified by selector..   * Load uBrowser into the div specified by selector..
11   */   */
12  function display_ubrowser(basepath, settings) {  function display_ubrowser(basepath, settings) {
13    if (oldcontents == '') {    if (oldcontents == null) {
14      oldcontents = $(settings['div']).html();      oldcontents = $(settings['div']).html();
15    }    }
16    
# Line 19  function display_ubrowser(basepath, sett Line 19  function display_ubrowser(basepath, sett
19             $(settings['div']).empty().addClass(settings['class']).append(contents);             $(settings['div']).empty().addClass(settings['class']).append(contents);
20           }           }
21    );    );
22    
23      return false;
24  }  }
25    
26  /**  /**
# Line 103  function load_node_select(tid, basepath) Line 105  function load_node_select(tid, basepath)
105    $.post(basepath + 'ubrowser/nodes/' + tid + $('#edit-ub-nids').val(), settings,    $.post(basepath + 'ubrowser/nodes/' + tid + $('#edit-ub-nids').val(), settings,
106           function(contents) {           function(contents) {
107             $('#ubrowser-nodes').empty().append(contents);             $('#ubrowser-nodes').empty().append(contents);
108               $('#edit-unid').dblclick( function () { ubrowser_action_select(); } );
109           }           }
110    );    );
111  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2