Commit 868fde83 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Migrate to the new namespace for plugin_dbui (0.9.0).

parent db572876
......@@ -4,21 +4,21 @@
*/
// Activate the dynamic loading for Ext JS and application classes
if (App.debug) {
if (Dbui.debug) {
Ext.Loader.setConfig({
disableCaching: false,
enabled: true,
paths: {
'App': '/' + App.name + '/static/plugin_dbui/src',
'Ext': '/' + App.name + '/static/plugin_extjs/src',
'Trp': '/' + App.name + '/static/limbra/src'
'Dbui': '/' + Dbui.name + '/static/plugin_dbui/src',
'Ext': '/' + Dbui.name + '/static/plugin_extjs/src',
'Trp': '/' + Dbui.name + '/static/limbra/src'
}
});
}
Ext.require('App.container.Viewport');
Ext.require('App.grid.plugin.RowEditorAddWizard');
Ext.require('App.plugin.MathJax');
Ext.require('Dbui.container.Viewport');
Ext.require('Dbui.grid.plugin.RowEditorAddWizard');
Ext.require('Dbui.plugin.MathJax');
Ext.require('Ext.direct.Manager');
Ext.require('Ext.direct.RemotingProvider');
......@@ -36,17 +36,17 @@ Ext.onReady(function(){
Ext.QuickTips.init();
// Expose the remote methods
Ext.direct.Manager.addProvider(App.REMOTE_API);
Ext.direct.Manager.addProvider(Dbui.REMOTE_API);
// define the models
App.defineModels();
Dbui.defineModels();
// Close user session on the server.
// Action trigger when the page is refreshed or when the tab is closed.
// NOTE: It should work when the browser is closed to.
// Not working with FireFox 17.0.8, web2py 2.4.5 and Ext JS 3.4.0.
Ext.EventManager.on(window, 'beforeunload', App.closeUserSession);
Ext.EventManager.on(window, 'beforeunload', Dbui.closeUserSession);
// Instantiate the application
app = Ext.create('App.container.Viewport', App.config.viewport);
app = Ext.create('Dbui.container.Viewport', Dbui.config.viewport);
});
\ No newline at end of file
......@@ -6,10 +6,10 @@
*/
Ext.define('Trp.wizard.Harvester', {
extend: 'App.wizard.Wizard',
extend: 'Dbui.wizard.Wizard',
alias: 'widget.xwizardharvester',
uses: [
'App.form.field.ComboBox',
'Dbui.form.field.ComboBox',
'Ext.form.RadioGroup',
'Ext.form.field.Text'
],
......
......@@ -23,7 +23,7 @@
<script type="text/javascript">
// create the form and load values
form = Ext.create('App.form.Panel', cfg);
form = Ext.create('Dbui.form.Panel', cfg);
form.setAction('create');
form.getForm().setValues(values);
......
......@@ -216,7 +216,7 @@
//
Ext.create('Ext.Component', {
loader: {
url: '/' + App.name + '/harvest/edit_insert',
url: '/' + Dbui.name + '/harvest/edit_insert',
params: {
Edit_insert_selectorId_teams: harvester.id_teams,
Edit_insert_selectorId_projects: harvester.id_projects,
......
......@@ -101,7 +101,7 @@
// instantiate the grid with a summary row.
// data can be extracted via the plugin pGridExport
//
var grid = Ext.create('App.grid.Panel', {
var grid = Ext.create('Dbui.grid.Panel', {
plugins: [{
fileRoot: 'metrics',
ptype:'pGridExport'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment