2013-04-13 21:00:13 +02:00
|
|
|
/**
|
|
|
|
* EGroupware eTemplate2 - JS Itempicker object
|
|
|
|
* derived from et2_link_entry widget @copyright 2011 Nathan Gray
|
|
|
|
*
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package etemplate
|
|
|
|
* @subpackage api
|
2021-06-07 17:33:53 +02:00
|
|
|
* @link https://www.egroupware.org
|
2013-04-13 21:00:13 +02:00
|
|
|
* @author Christian Binder
|
|
|
|
* @author Nathan Gray
|
|
|
|
* @copyright 2012 Christian Binder
|
|
|
|
* @copyright 2011 Nathan Gray
|
|
|
|
*/
|
2020-02-13 15:45:23 +01:00
|
|
|
function itempickerDocumentAction(context, data) {
|
|
|
|
"use strict";
|
2021-06-07 17:33:53 +02:00
|
|
|
let formid = "itempicker_action_form";
|
|
|
|
let form = "<form id='" + formid + "' action='index.php?menuaction=" + data.app + "." + data.app + "_merge.download_by_request' method='POST'>"
|
2020-02-13 15:45:23 +01:00
|
|
|
+ "<input type='hidden' name='data_document_name' value='" + data.value.name + "' />"
|
|
|
|
+ "<input type='hidden' name='data_document_dir' value='" + data.value.dir + "' />"
|
|
|
|
+ "<input type='hidden' name='data_checked' value='" + data.checked.join(',') + "' />"
|
|
|
|
+ "</form>";
|
|
|
|
jQuery("body").append(form);
|
|
|
|
jQuery("#" + formid).submit().remove();
|
2013-04-13 21:00:13 +02:00
|
|
|
}
|
2020-02-13 15:45:23 +01:00
|
|
|
//# sourceMappingURL=et2_extension_itempicker_actions.js.map
|