1
0
Fork 0
forked from 0x2620/oxjs

ListCalendar -> CalendarEditor; ListMap -> MapEditor

This commit is contained in:
rolux 2012-06-05 10:25:27 +02:00
commit 6c5b8ef0b6
4 changed files with 14 additions and 18 deletions

View file

@ -1,8 +1,8 @@
'use strict';
/*@
Ox.ListMap <f> ListMap object
([options[, self]]) -> <o:Ox.SplitPanel> ListMap object
Ox.MapEditor <f> Map Editor
([options[, self]]) -> <o:Ox.SplitPanel> Map Editor
options <o> Options object
height <n|256> Height in px
labels <b|false> If true, show labels
@ -13,9 +13,7 @@ Ox.ListMap <f> ListMap object
self <o> Shared private variable
@*/
// FIXME: Should be Ox.MapEditor
Ox.ListMap = function(options, self) {
Ox.MapEditor = function(options, self) {
self = self || {};
var that = Ox.Element({}, self)
@ -777,7 +775,7 @@ Ox.ListMap = function(options, self) {
],
orientation: 'horizontal'
})
.addClass('OxListMap')
.addClass('OxMapEditor')
);
function addPlace() {
@ -1138,7 +1136,7 @@ Ox.ListMap = function(options, self) {
that.focusList = function() {
self.$list.gainFocus();
return that;
}
};
/*@
reloadList <f> reloadList
@ -1146,13 +1144,12 @@ Ox.ListMap = function(options, self) {
that.reloadList = function() {
self.$list.reloadList();
return that;
}
};
/*@
resizeMap <f> resizeMap
@*/
that.resizeMap = function() {
Ox.Log('Map', 'Ox.ListMap.resizeMap()')
self.$map.resizeMap();
return that;
};