| 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 = ''; |
| 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 |
|
|
| 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 |
/** |
/** |
| 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 |
} |
} |