mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Convert et2_extension_itempicker_actions to TS
This commit is contained in:
parent
c9abe89184
commit
5d11d6f34b
@ -10,19 +10,16 @@
|
||||
* @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 $
|
||||
*/
|
||||
|
||||
function itempickerDocumentAction(context, data)
|
||||
{
|
||||
"use strict";
|
||||
|
||||
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>";
|
||||
jQuery("body").append(form);
|
||||
jQuery("#" + formid).submit().remove();
|
||||
function itempickerDocumentAction(context, data) {
|
||||
"use strict";
|
||||
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>";
|
||||
jQuery("body").append(form);
|
||||
jQuery("#" + formid).submit().remove();
|
||||
}
|
||||
//# sourceMappingURL=et2_extension_itempicker_actions.js.map
|
28
api/js/etemplate/et2_extension_itempicker_actions.ts
Normal file
28
api/js/etemplate/et2_extension_itempicker_actions.ts
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
function itempickerDocumentAction(context, data)
|
||||
{
|
||||
"use strict";
|
||||
|
||||
let formid = "itempicker_action_form";
|
||||
let 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>";
|
||||
jQuery("body").append(form);
|
||||
jQuery("#" + formid).submit().remove();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user