projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SL::File: get auch mit dbfile als Parameter aufrufen können
[kivitendo-erp.git]
/
js
/
kivi.SalesPurchase.js
diff --git
a/js/kivi.SalesPurchase.js
b/js/kivi.SalesPurchase.js
index
771351c
..
a350e19
100644
(file)
--- a/
js/kivi.SalesPurchase.js
+++ b/
js/kivi.SalesPurchase.js
@@
-18,7
+18,7
@@
namespace('kivi.SalesPurchase', function(ns) {
this.edit_longdescription_with_params = function(params) {
var $container = $('#popup_edit_longdescription_input_container');
this.edit_longdescription_with_params = function(params) {
var $container = $('#popup_edit_longdescription_input_container');
- var $edit = $('<textarea id="popup_edit_longdescription_input" class="texteditor-in-dialog" wrap="soft" style="width: 750px; height: 220px;"></textarea>');
+ var $edit = $('<textarea id="popup_edit_longdescription_input" class="texteditor-in-dialog
texteditor-space-for-toolbar
" wrap="soft" style="width: 750px; height: 220px;"></textarea>');
$container.children().remove();
$container.append($edit);
$container.children().remove();
$container.append($edit);
@@
-274,10
+274,13
@@
namespace('kivi.SalesPurchase', function(ns) {
return true;
};
return true;
};
- this.show_email_dialog = function(send_action) {
+ this.show_email_dialog = function(send_action
, vc, vc_id_selector
) {
$('#form').data('send-email-action', send_action || 'send_sales_purchase_email');
$('#form').data('send-email-action', send_action || 'send_sales_purchase_email');
- var vc = $('#vc').val();
+ vc = vc || $('#vc').val();
+ vc_id_selector = vc_id_selector || '#' + vc + '_id';
+ var vc_id = $(vc_id_selector).val();
+
var data = {
action: 'show_sales_purchase_email_dialog',
cp_id: $('#cp_id').val(),
var data = {
action: 'show_sales_purchase_email_dialog',
cp_id: $('#cp_id').val(),
@@
-295,7
+298,7
@@
namespace('kivi.SalesPurchase', function(ns) {
quonumber: $('#quonumber').val(),
type: $('#type').val(),
vc: vc,
quonumber: $('#quonumber').val(),
type: $('#type').val(),
vc: vc,
- vc_id:
$('#' + vc + '_id').val()
,
+ vc_id:
vc_id
,
project_id: $('#globalproject_id').val(),
};
project_id: $('#globalproject_id').val(),
};