forked from 0x2620/oxjs
use Ox.$
This commit is contained in:
parent
a97170ea5b
commit
37ab78f05b
7 changed files with 22 additions and 23 deletions
|
|
@ -361,7 +361,7 @@ Ox.Map = function(options, self) {
|
|||
bottom: 0
|
||||
})
|
||||
.appendTo(that);
|
||||
self.$placeFlag = $('<img>')
|
||||
self.$placeFlag = Ox.$('<img>')
|
||||
.addClass('OxFlag')
|
||||
.attr({
|
||||
src: Ox.PATH + 'Ox.Geo/png/icons/16/NTHH.png'
|
||||
|
|
@ -1252,7 +1252,7 @@ Ox.Map = function(options, self) {
|
|||
.data({country: country})
|
||||
.empty()
|
||||
.append(
|
||||
$('<img>').attr({
|
||||
Ox.$('<img>').attr({
|
||||
src: Ox.getFlagByGeoname(place.geoname, 16)
|
||||
})
|
||||
)
|
||||
|
|
@ -1602,7 +1602,7 @@ Ox.Map = function(options, self) {
|
|||
self.$placeControls.name.options({title: value});
|
||||
} else if (key == 'geoname') {
|
||||
self.$placeControls.flag.empty().append(
|
||||
$('<img>').attr({
|
||||
Ox.$('<img>').attr({
|
||||
src: Ox.getFlagByGeoname(value, 16)
|
||||
})
|
||||
);
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ Ox.MapEditor = function(options, self) {
|
|||
{
|
||||
format: function(value, data) {
|
||||
return data.type
|
||||
? $('<img>')
|
||||
? Ox.$('<img>')
|
||||
.attr({
|
||||
src: Ox.getFlagByGeoname(data.geoname, 16)
|
||||
})
|
||||
|
|
@ -121,7 +121,7 @@ Ox.MapEditor = function(options, self) {
|
|||
}
|
||||
});
|
||||
return data.type
|
||||
? $('<div>')
|
||||
? Ox.$('<div>')
|
||||
.addClass('OxTypeIcon')
|
||||
.css({
|
||||
width: iconSize + 'px',
|
||||
|
|
@ -148,7 +148,7 @@ Ox.MapEditor = function(options, self) {
|
|||
format: function(value, data) {
|
||||
return data.type
|
||||
? value
|
||||
: $('<span>').addClass('OxWarning').html(value);
|
||||
: Ox.$('<span>').addClass('OxWarning').html(value);
|
||||
},
|
||||
id: 'name',
|
||||
operator: '+',
|
||||
|
|
@ -427,7 +427,7 @@ Ox.MapEditor = function(options, self) {
|
|||
self.$placeTitlebar = Ox.Bar({
|
||||
size: 24
|
||||
});
|
||||
self.$placeTitle = $('<div>')
|
||||
self.$placeTitle = Ox.$('<div>')
|
||||
.hide()
|
||||
.appendTo(self.$placeTitlebar);
|
||||
if (self.options.mode == 'define') {
|
||||
|
|
@ -443,7 +443,7 @@ Ox.MapEditor = function(options, self) {
|
|||
.hide()
|
||||
.appendTo(self.$placeTitle);
|
||||
}
|
||||
self.$placeFlag = $('<img>')
|
||||
self.$placeFlag = Ox.$('<img>')
|
||||
.addClass('OxFlag')
|
||||
.attr({
|
||||
src: Ox.getFlagByGeoname('', 16)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue