mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 02:18:31 +02:00
Ajax select widget fixes:
- Remove the need for the user to have access to the eTemplate app - Fix some settings being lost, and inability to clear the widget
This commit is contained in:
@ -19,8 +19,10 @@
|
||||
-->
|
||||
|
||||
//xajaxDebug = 1;
|
||||
var current_app = 'etemplate';
|
||||
|
||||
function ajax_select_widget_setup(widget_id, onchange, options) {
|
||||
function ajax_select_widget_setup(widget_id, onchange, options, currentapp) {
|
||||
current_app = currentapp;
|
||||
if(onchange) {
|
||||
if(onchange == 1) {
|
||||
onchange = function() {submitit(this.form, this.value);};
|
||||
@ -117,7 +119,7 @@ function change(e, value) {
|
||||
selects[i].style.visibility = 'hidden';
|
||||
}
|
||||
}
|
||||
xajax_doXMLHTTP("etemplate.ajax_select_widget.ajax_search.etemplate", id, value, set_id, query);
|
||||
xajax_doXMLHTTP(current_app + ".ajax_select_widget.ajax_search.etemplate", id, value, set_id, query);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user