forked from 0x2620/oxjs
use new form element syntax
This commit is contained in:
parent
d80019a17c
commit
215f1f6c1b
11 changed files with 56 additions and 90 deletions
|
|
@ -95,11 +95,8 @@ Ox.Dialog = function(options, self) {
|
|||
|
||||
if (self.options.maximizeButton) {
|
||||
self.$maximizeButton = Ox.Button({
|
||||
title: [
|
||||
{id: 'add', title: 'add'},
|
||||
{id: 'remove', title: 'remove'}
|
||||
],
|
||||
type: 'image'
|
||||
type: 'image',
|
||||
values: ['add', 'remove']
|
||||
})
|
||||
.css({
|
||||
top: '4px',
|
||||
|
|
@ -344,7 +341,7 @@ Ox.Dialog = function(options, self) {
|
|||
};
|
||||
decenter();
|
||||
if (self.maximized) {
|
||||
self.$maximizeButton.toggleTitle();
|
||||
self.$maximizeButton.toggle();
|
||||
self.maximized = false;
|
||||
}
|
||||
that.wrap(self.$box);
|
||||
|
|
@ -658,7 +655,7 @@ Ox.Dialog = function(options, self) {
|
|||
callback && callback();
|
||||
});
|
||||
if (self.maximized) {
|
||||
self.$maximizeButton.toggleTitle();
|
||||
self.$maximizeButton.toggle();
|
||||
self.maximized = false;
|
||||
}
|
||||
if (self.options.focus) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue