| 14 |
oldcontents = $(settings['div']).html(); |
oldcontents = $(settings['div']).html(); |
| 15 |
} |
} |
| 16 |
|
|
| 17 |
$.post(basepath + 'ubrowser/main', settings, |
$.post(basepath + '?q=ubrowser/main', settings, |
| 18 |
function(contents) { |
function(contents) { |
| 19 |
$(settings['div']).empty().addClass(settings['class']).append(contents); |
$(settings['div']).empty().addClass(settings['class']).append(contents); |
| 20 |
} |
} |
| 102 |
'nodepl' : $('#edit-ub-nodepl').val() |
'nodepl' : $('#edit-ub-nodepl').val() |
| 103 |
}; |
}; |
| 104 |
|
|
| 105 |
$.post(basepath + 'ubrowser/nodes/' + tid + $('#edit-ub-nids').val(), settings, |
$.post(basepath + '?q=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(); } ); |
$('#edit-unid').dblclick( function () { ubrowser_action_select(); } ); |
| 138 |
} |
} |
| 139 |
lastsearch = settings['keys']; |
lastsearch = settings['keys']; |
| 140 |
|
|
| 141 |
$.post(basepath + 'ubrowser/nodesearch', settings, |
$.post(basepath + '?q=ubrowser/nodesearch', settings, |
| 142 |
function(contents) { |
function(contents) { |
| 143 |
if (contents != '') { |
if (contents != '') { |
| 144 |
$('#ubrowser-nodes').empty().append(contents); |
$('#ubrowser-nodes').empty().append(contents); |
| 157 |
// Don't go if they haven't selected an actual node yet. |
// Don't go if they haven't selected an actual node yet. |
| 158 |
var nid = $('#edit-unid').val(); |
var nid = $('#edit-unid').val(); |
| 159 |
if (parseInt(nid) > 0) { |
if (parseInt(nid) > 0) { |
| 160 |
var url = basepath + $('#edit-unid-path-' + nid).val(); |
var url = basepath + '?q=' + $('#edit-unid-path-' + nid).val(); |
| 161 |
if ($('#edit-ub-window').val() == 'new') { |
if ($('#edit-ub-window').val() == 'new') { |
| 162 |
window.open(url); |
window.open(url); |
| 163 |
} |
} |