From 334c66d20391bc0c9065fd14dae8518e49ab5702 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 24 Apr 2014 11:49:39 +0000 Subject: [PATCH] Set select_options for widget type of "select-account" with egw->accounts client-side method --- etemplate/js/et2_widget_selectbox.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index b5fab60669..d8c8869ce9 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -507,6 +507,10 @@ var et2_selectbox = et2_inputWidget.extend( "title": et2_readAttrWithDefault(options[i], "title", "") }; } + if (this.options.type == 'select-account') + { + jQuery.extend(this.options.select_options, this.egw().accounts(this.options.account_type)); + } this.set_select_options(this.options.select_options); },