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
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Christian Binder
|
|
|
|
* @author Nathan Gray
|
|
|
|
* @copyright 2012 Christian Binder
|
|
|
|
* @copyright 2011 Nathan Gray
|
|
|
|
* @version $Id: et2_widget_itempicker.js 38623 2012-03-26 23:27:53Z jaytraxx $
|
|
|
|
*/
|
|
|
|
|
2016-02-29 21:40:43 +01:00
|
|
|
function itempickerDocumentAction(context, data)
|
|
|
|
{
|
|
|
|
"use strict";
|
2013-04-13 21:00:13 +02:00
|
|
|
|
2012-09-29 12:23:03 +02:00
|
|
|
var formid = "itempicker_action_form";
|
|
|
|
var form = "<form id='" + formid + "' action='index.php?menuaction=" + data.app + "." + data.app + "_merge.download_by_request' method='POST'>"
|
|
|
|
+ "<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>";
|
|
|
|
$j("body").append(form);
|
|
|
|
$j("#" + formid).submit().remove();
|
2013-04-13 21:00:13 +02:00
|
|
|
}
|