update example

This commit is contained in:
rolux 2012-06-22 09:55:40 +02:00
parent 8be5ffbb2c
commit ffe27a69d5

View file

@ -8,7 +8,7 @@ Ox.load('UI', function() {
/* /*
Create a new Ox.UI widget. Create a new Ox.UI widget.
*/ */
Ox.IPV4Map = function(options, self) { Ox.IPv4Map = function(options, self) {
self = self || {}; self = self || {};
var that = Ox.Element({}, self) var that = Ox.Element({}, self)
@ -1028,7 +1028,7 @@ Ox.load('UI', function() {
Ox.getJSON('json/bookmarks.json', function(bookmarks) { Ox.getJSON('json/bookmarks.json', function(bookmarks) {
Ox.getJSONP(lookupURL, function(data) { Ox.getJSONP(lookupURL, function(data) {
Ox.IPV4Map({ Ox.IPv4Map({
bookmarks: bookmarks, bookmarks: bookmarks,
ip: data.ip.indexOf(':') == -1 ? data.ip : '127.0.0.1', ip: data.ip.indexOf(':') == -1 ? data.ip : '127.0.0.1',
lookupURL: lookupURL, lookupURL: lookupURL,