diff --git a/workflow/engine/methods/setup/skinsList.php b/workflow/engine/methods/setup/skinsList.php index c9cd337c1..31ee281dc 100755 --- a/workflow/engine/methods/setup/skinsList.php +++ b/workflow/engine/methods/setup/skinsList.php @@ -45,6 +45,7 @@ $oHeadPublisher =& headPublisher::getSingleton(); $oHeadPublisher->addExtJsScript('setup/skinList', false); //adding a javascript file .js $oHeadPublisher->addContent('setup/skinList'); //adding a html file .html. $oHeadPublisher->assign('CONFIG', $Config); +$oHeadPublisher->assign('SYS_SKIN', SYS_SKIN); $oHeadPublisher->assign('FORMATS',$c->getFormats()); diff --git a/workflow/engine/templates/setup/skinList.js b/workflow/engine/templates/setup/skinList.js index 0e5376d1a..16355f49a 100755 --- a/workflow/engine/templates/setup/skinList.js +++ b/workflow/engine/templates/setup/skinList.js @@ -319,7 +319,13 @@ Ext.onReady(function(){ }, searchText,clearTextButton,searchButton], bbar: bbarpaging, listeners: { - rowdblclick: DoNothing + rowdblclick: function(grid, n,e){ + rowSelected = infoGrid.getSelectionModel().getSelected(); + if((rowSelected.data.SKIN_FOLDER_ID)&&((rowSelected.data.SKIN_FOLDER_ID!=""))){ + viewport.getEl().mask(_('ID_SKIN_SWITCHING')); + changeSkin(rowSelected.data.SKIN_FOLDER_ID,SYS_SKIN); + } + } }, view: new Ext.grid.GroupingView({ forceFit:true, @@ -411,10 +417,6 @@ exportSkin = function(){ } -//Open New Calendar -NewCalendarAction = function(){ - location.href = 'calendarEdit'; -}; //Load Grid By Default GridByDefault = function(){ @@ -522,4 +524,9 @@ UpdatePageConfig = function(pageSize){ size: pageSize } }); -}; \ No newline at end of file +}; +function changeSkin(newSkin,currentSkin){ + currentLocation=top.location.href; + newLocation = currentLocation.replace("/"+currentSkin+"/","/"+newSkin+"/"); + top.location.href=newLocation; +} \ No newline at end of file