1
0
Fork 0
forked from 0x2620/oxjs

use new form element syntax

This commit is contained in:
rolux 2011-12-22 12:54:20 +05:30
commit 215f1f6c1b
11 changed files with 56 additions and 90 deletions

View file

@ -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) {