mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Introduced a mechanism to load required javascripts at runtime
(lazy loading) using the require.js. This allows us to load the javascript required for any node, only when it was loaded in the browser tree. Also, introduced the mechanism to show/edit/create of any node in a tab panel (wcDocker.Panel).
This commit is contained in:
16
web/pgadmin/static/js/pgadmin.js
Normal file
16
web/pgadmin/static/js/pgadmin.js
Normal file
@@ -0,0 +1,16 @@
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define([], factory);
|
||||
} else if(typeof module !== 'undefined' && module.exports) {
|
||||
// CommonJS
|
||||
module.exports = factory();
|
||||
} else {
|
||||
// Browser globals
|
||||
factory();
|
||||
}
|
||||
}(function(){
|
||||
var pgAdmin = window.pgAdmin = window.pgAdmin || {};
|
||||
|
||||
return pgAdmin;
|
||||
}));
|
||||
Reference in New Issue
Block a user