url controller updates, list bugfixes
This commit is contained in:
parent
ef9040ba24
commit
3965eed153
12 changed files with 98 additions and 48 deletions
|
|
@ -261,6 +261,7 @@ Ox.Dialog = function(options, self) {
|
|||
function getButtonById(id) {
|
||||
var ret = null;
|
||||
Ox.forEach(self.options.buttons, function(button) {
|
||||
Ox.print(button.options(), button.options('id'))
|
||||
if (button.options && button.options('id') == id) {
|
||||
ret = button;
|
||||
return false;
|
||||
|
|
@ -271,6 +272,7 @@ Ox.Dialog = function(options, self) {
|
|||
|
||||
function keypress(key) {
|
||||
var id = self.options.keys[key];
|
||||
Ox.print(id, getButtonById(id));
|
||||
id && getButtonById(id).$element.trigger('click');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue