forked from 0x2620/oxjs
fix event handlers and split panel resize event
This commit is contained in:
parent
3f90e96c3a
commit
da9e5dbb29
27 changed files with 722 additions and 118 deletions
|
|
@ -616,7 +616,7 @@ Ox.Input = function(options, self) {
|
|||
self.$input.val(self.options.value);//.focus();
|
||||
}
|
||||
|
||||
function clickMenu(event, data) {
|
||||
function clickMenu(data) {
|
||||
//Ox.print('clickMenu', data);
|
||||
self.options.value = data.title;
|
||||
self.$input.val(self.options.value).focus();
|
||||
|
|
@ -724,7 +724,7 @@ Ox.Input = function(options, self) {
|
|||
data.text && self.$input.val(data.text);
|
||||
}
|
||||
|
||||
function selectMenu(event, data) {
|
||||
function selectMenu(data) {
|
||||
var pos = cursor();
|
||||
//if (self.options.value) {
|
||||
//Ox.print('selectMenu', pos, data.title)
|
||||
|
|
@ -1242,7 +1242,7 @@ Ox.Input_ = function(options, self) {
|
|||
|
||||
//width(self.options.width);
|
||||
|
||||
function changeKey(event, data) {
|
||||
function changeKey(data) {
|
||||
//Ox.print('changeKey', data);
|
||||
if (data) { // fixme: necessary?
|
||||
self.key = {
|
||||
|
|
@ -1591,7 +1591,7 @@ Ox.InputElement_ = function(options, self) {
|
|||
that.$element.val('').focus();
|
||||
}
|
||||
|
||||
function clickMenu(event, data) {
|
||||
function clickMenu(data) {
|
||||
//Ox.print('clickMenu', data);
|
||||
that.$element.val(data.title);
|
||||
//self.$autosuggestMenu.hideMenu();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue