-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #460 from cmv/btfou-updates-1
updates
- Loading branch information
Showing
5 changed files
with
76 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/* global module */ | ||
module.exports = function(grunt) { | ||
|
||
// middleware for grunt.connect | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
(function () { | ||
|
||
// globel dojoConfig is required for async loading of gmaps api | ||
window.dojoConfig = { | ||
async: true, | ||
packages: [{ | ||
name: 'viewer', | ||
location: location.pathname.replace(/[^\/]+$/, '') + 'js/viewer' | ||
}, { | ||
name: 'config', | ||
location: location.pathname.replace(/[^\/]+$/, '') + 'js/config' | ||
}, { | ||
name: 'gis', | ||
location: location.pathname.replace(/[^\/]+$/, '') + 'js/gis' | ||
}] | ||
}; | ||
|
||
// get the config file from the url if present | ||
var file = 'config/viewer', | ||
s = window.location.search, | ||
q = s.match(/config=([^&]*)/i); | ||
if (q && q.length > 0) { | ||
file = q[1]; | ||
if (file.indexOf('/') < 0) { | ||
file = 'config/' + file; | ||
} | ||
} | ||
|
||
require(window.dojoConfig, ['viewer/Controller', file, 'dojo/domReady!'], function (Controller, config) { | ||
Controller.startup(config); | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters