BUG "Al exportar el plugin se agrega una nueva pestaña dentro del submenu llamada Relative"

SOLVED
This commit is contained in:
Erik Amaru Ortiz
2010-12-17 20:27:59 +00:00
parent 2805afd2ba
commit 2948a8539e
4 changed files with 32 additions and 3 deletions

View File

@@ -35,6 +35,13 @@ else {
unset($_SESSION['DEV_FLAG']); unset($_SESSION['DEV_FLAG']);
unset($_SESSION['TOOLS_VIEWTYPE']); unset($_SESSION['TOOLS_VIEWTYPE']);
} }
if( isset($_GET['s']) )
$_SESSION['ADMIN_SELECTED'] = $_GET['s'];
else {
unset($_SESSION['ADMIN_SELECTED']);
}
$G_PUBLISH->AddContent('view', 'setup/main_Load'); $G_PUBLISH->AddContent('view', 'setup/main_Load');
G::RenderPage('publish'); G::RenderPage('publish');

View File

@@ -56,9 +56,10 @@
$i++; $i++;
} }
$oHeadPublisher->addExtJsScript('setup/main', false); //adding a javascript file .js $oHeadPublisher->addExtJsScript('setup/main', true); //adding a javascript file .js
$oHeadPublisher->addContent('setup/main'); //adding a html file .html. $oHeadPublisher->addContent('setup/main'); //adding a html file .html.
$oHeadPublisher->assign('tabItems', $tabItems); $oHeadPublisher->assign('tabItems', $tabItems);
$oHeadPublisher->assign('_item_selected', (isset($_SESSION['ADMIN_SELECTED'])?$_SESSION['ADMIN_SELECTED']:''));
G::RenderPage('publish', 'extJs'); G::RenderPage('publish', 'extJs');
// this patch enables the load of the plugin list panel inside de main admin panel iframe // this patch enables the load of the plugin list panel inside de main admin panel iframe

View File

@@ -3,11 +3,13 @@
* Aug 20th, 2010 * Aug 20th, 2010
*/ */
var _NODE_SELECTED;
var main = function(){ var main = function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider()); Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
items = Array(); var items = Array();
var i;
for(i=0; i<tabItems.length; i++){ for(i=0; i<tabItems.length; i++){
items[i] = new Ext.tree.TreePanel({ items[i] = new Ext.tree.TreePanel({
@@ -31,8 +33,23 @@ var main = function(){
listeners: { listeners: {
'click': function(tp) { 'click': function(tp) {
if( tp.attributes.url ){ if( tp.attributes.url ){
_NODE_SELECTED = tp.id;
document.getElementById('setup-frame').src = tp.attributes.url; document.getElementById('setup-frame').src = tp.attributes.url;
} }
},
'render': function(tp){
var loader = tp.getLoader();
loader.on("load", function(){
if( _item_selected != '' ){
node = tp.getNodeById(_item_selected);
document.getElementById('setup-frame').src = node.attributes.url;
if(node){
node.select();
_NODE_SELECTED = node.attributes.id;
}
}
});
} }
} }
}); });

View File

@@ -251,6 +251,10 @@ function activeDeactive(){
method: 'GET', method: 'GET',
success: function ( result, request ) { success: function ( result, request ) {
//Ext.MessageBox.alert('Success', 'Data return from the server: '+ result.responseText); //Ext.MessageBox.alert('Success', 'Data return from the server: '+ result.responseText);
parent.parent.location.href = 'main?s='+parent._NODE_SELECTED;
return;
store.reload(); store.reload();
plugins = parent.Ext.getCmp('plugins'); plugins = parent.Ext.getCmp('plugins');