in map and calendar editor, change order of add/remove and new buttons

This commit is contained in:
rolux 2013-04-26 10:03:26 +02:00
parent 751cf07dfd
commit 53239d4cd1
2 changed files with 24 additions and 24 deletions

View file

@ -449,26 +449,26 @@ Ox.CalendarEditor = function(options, self) {
size: 24
});
self.$newEventButton = Ox.Button({
title: 'New Event',
width: 70
})
.css({float: 'left', margin: '4px'})
.bindEvent({
click: addEvent
})
.appendTo(self.$eventStatusbar);
self.$removeEventButton = Ox.Button({
title: 'Remove Event',
width: 90
})
.css({float: 'right', margin: '4px'})
.css({float: 'left', margin: '4px'})
.bindEvent({
click: removeEvent
})
.hide()
.appendTo(self.$eventStatusbar);
self.$newEventButton = Ox.Button({
title: 'New Event',
width: 70
})
.css({float: 'right', margin: '4px'})
.bindEvent({
click: addEvent
})
.appendTo(self.$eventStatusbar);
if (self.options.mode == 'define') {
self.$defineEventButton = Ox.Button({

View file

@ -642,23 +642,11 @@ Ox.MapEditor = function(options, self) {
size: 24
});
self.$newPlaceButton = Ox.Button({
title: 'New Place',
width: 70
})
.css({float: 'left', margin: '4px'})
.bindEvent({
click: function() {
self.$map.newPlace();
}
})
.appendTo(self.$placeStatusbar);
self.$addPlaceButton = Ox.Button({
title: 'Add Place',
width: 90
})
.css({float: 'right', margin: '4px'})
.css({float: 'left', margin: '4px'})
.bindEvent({
click: function() {
if (this.options('title') == 'Add Place') {
@ -671,6 +659,18 @@ Ox.MapEditor = function(options, self) {
.hide()
.appendTo(self.$placeStatusbar);
self.$newPlaceButton = Ox.Button({
title: 'New Place',
width: 70
})
.css({float: 'right', margin: '4px'})
.bindEvent({
click: function() {
self.$map.newPlace();
}
})
.appendTo(self.$placeStatusbar);
if (self.options.mode == 'define') {
self.$definePlaceButton = Ox.Button({
title: 'Define Place',