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 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({ self.$removeEventButton = Ox.Button({
title: 'Remove Event', title: 'Remove Event',
width: 90 width: 90
}) })
.css({float: 'right', margin: '4px'}) .css({float: 'left', margin: '4px'})
.bindEvent({ .bindEvent({
click: removeEvent click: removeEvent
}) })
.hide() .hide()
.appendTo(self.$eventStatusbar); .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') { if (self.options.mode == 'define') {
self.$defineEventButton = Ox.Button({ self.$defineEventButton = Ox.Button({

View file

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