projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SelfTest: ar_amount nicht bei Anzahlungs- oder Schlußrechnungen prüfen
[kivitendo-erp.git]
/
js
/
autocomplete_chart.js
diff --git
a/js/autocomplete_chart.js
b/js/autocomplete_chart.js
index
ba8b4ed
..
c3d4cbd
100644
(file)
--- a/
js/autocomplete_chart.js
+++ b/
js/autocomplete_chart.js
@@
-14,6
+14,9
@@
namespace('kivi', function(k){
RIGHT: 39,
PAGE_UP: 33,
PAGE_DOWN: 34,
RIGHT: 39,
PAGE_UP: 33,
PAGE_DOWN: 34,
+ SHIFT: 16,
+ CTRL: 17,
+ ALT: 18,
};
var CLASSES = {
PICKED: 'chartpicker-picked',
};
var CLASSES = {
PICKED: 'chartpicker-picked',
@@
-197,6
+200,10
@@
namespace('kivi', function(k){
select: function(event, ui) {
set_item(ui.item);
},
select: function(event, ui) {
set_item(ui.item);
},
+ search: function(event, ui) {
+ if ((event.which == KEY.SHIFT) || (event.which == KEY.CTRL) || (event.which == KEY.ALT))
+ event.preventDefault();
+ }
});
/* In case users are impatient and want to skip ahead:
* Capture <enter> key events and check if it's a unique hit.
});
/* In case users are impatient and want to skip ahead:
* Capture <enter> key events and check if it's a unique hit.
@@
-230,7
+237,7
@@
namespace('kivi', function(k){
});
return false;
}
});
return false;
}
- } else {
+ } else
if ((event.which != KEY.SHIFT) && (event.which != KEY.CTRL) && (event.which != KEY.ALT))
{
state = STATES.UNDEFINED;
}
});
state = STATES.UNDEFINED;
}
});
@@
-247,11
+254,9
@@
namespace('kivi', function(k){
});
// now add a picker div after the original input
});
// now add a picker div after the original input
- var pcont = $('<span>').addClass('position-absolute');
- var picker = $('<div>');
- $dummy.after(pcont);
- pcont.append(picker);
- picker.addClass('icon16 search').click(open_dialog);
+ var popup_button = $('<span>').addClass('cpc_popup_button');
+ $dummy.after(popup_button);
+ popup_button.click(open_dialog);
var cp = {
real: function() { return $real },
var cp = {
real: function() { return $real },