projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filesystem Wurzelverzeichnis nun in kivitendo.conf
[kivitendo-erp.git]
/
js
/
kivi.js
diff --git
a/js/kivi.js
b/js/kivi.js
index
c6b7074
..
41b3762
100644
(file)
--- a/
js/kivi.js
+++ b/
js/kivi.js
@@
-243,10
+243,7
@@
namespace("kivi", function(ns) {
$(elt).datepicker();
});
$(elt).datepicker();
});
- if (ns.PartPicker)
- ns.run_once_for('input.part_autocomplete', 'part_picker', function(elt) {
- kivi.PartPicker($(elt));
- });
+ if (ns.Part) ns.Part.reinit_widgets();
if (ns.ProjectPicker)
ns.run_once_for('input.project_autocomplete', 'project_picker', function(elt) {
if (ns.ProjectPicker)
ns.run_once_for('input.project_autocomplete', 'project_picker', function(elt) {
@@
-360,13
+357,13
@@
namespace("kivi", function(ns) {
params.dialog || { },
{ // Options that must not be changed:
close: function(event, ui) {
params.dialog || { },
{ // Options that must not be changed:
close: function(event, ui) {
+ dialog.dialog('close');
+
if (custom_close)
custom_close();
if (params.url || params.html)
dialog.remove();
if (custom_close)
custom_close();
if (params.url || params.html)
dialog.remove();
- else
- dialog.dialog('close');
}
});
}
});
@@
-446,7
+443,7
@@
namespace("kivi", function(ns) {
ns.run = function(function_name, args) {
var fn = ns.get_function_by_name(function_name);
if (fn)
ns.run = function(function_name, args) {
var fn = ns.get_function_by_name(function_name);
if (fn)
- return fn.apply({}, args);
+ return fn.apply({}, args
|| []
);
console.error('kivi.run("' + function_name + '"): No function by that name found');
return undefined;
console.error('kivi.run("' + function_name + '"): No function by that name found');
return undefined;