Bug Id: 6274. Fixed. Documents with correct labels (translations)
This commit is contained in:
@@ -402,7 +402,7 @@ function uploadDocument(){
|
|||||||
$uploadDocumentComponent["xtype"]= "tabpanel";
|
$uploadDocumentComponent["xtype"]= "tabpanel";
|
||||||
$uploadDocumentComponent["stateId"]= "upload_tabpanel";
|
$uploadDocumentComponent["stateId"]= "upload_tabpanel";
|
||||||
$uploadDocumentComponent["activeTab"]= "uploadform";
|
$uploadDocumentComponent["activeTab"]= "uploadform";
|
||||||
$uploadDocumentComponent["dialogtitle"]= "actupload";
|
$uploadDocumentComponent["dialogtitle"]= G::LoadTranslation('ID_UPLOAD');
|
||||||
$uploadDocumentComponent["stateful"]= true;
|
$uploadDocumentComponent["stateful"]= true;
|
||||||
|
|
||||||
$uploadDocumentComponent["stateEvents"]= array("tabchange");
|
$uploadDocumentComponent["stateEvents"]= array("tabchange");
|
||||||
@@ -459,7 +459,7 @@ function uploadDocument(){
|
|||||||
$itemA["fileUpload"]=true;
|
$itemA["fileUpload"]=true;
|
||||||
$itemA["labelWidth"]="125";
|
$itemA["labelWidth"]="125";
|
||||||
$itemA["url"]="URL_SCRIPT";
|
$itemA["url"]="URL_SCRIPT";
|
||||||
$itemA["title"]="standardupload";
|
$itemA["title"]=G::LoadTranslation('ID_UPLOAD');
|
||||||
//$itemA["tooltip"]="Max File Size <strong>". ((get_max_file_size() / 1024) / 1024)." MB</strong><br />Max Post Size<strong>". ((get_max_upload_limit() / 1024) / 1024)." MB</strong><br />";
|
//$itemA["tooltip"]="Max File Size <strong>". ((get_max_file_size() / 1024) / 1024)." MB</strong><br />Max Post Size<strong>". ((get_max_upload_limit() / 1024) / 1024)." MB</strong><br />";
|
||||||
$itemA["frame"]=true;
|
$itemA["frame"]=true;
|
||||||
$itemA["items"]=array();
|
$itemA["items"]=array();
|
||||||
@@ -484,7 +484,7 @@ function uploadDocument(){
|
|||||||
$itemB=array();
|
$itemB=array();
|
||||||
|
|
||||||
$itemB["xtype"]="checkbox";
|
$itemB["xtype"]="checkbox";
|
||||||
$itemB["fieldLabel"]="overwrite_files";
|
$itemB["fieldLabel"]="Overwrite";//G::LoadTranslation('ID_OVERWRITE');
|
||||||
$itemB["name"]="overwrite_files";
|
$itemB["name"]="overwrite_files";
|
||||||
$itemB["checked"]=true;
|
$itemB["checked"]=true;
|
||||||
$itemA["items"][]=$itemB;
|
$itemA["items"][]=$itemB;
|
||||||
@@ -492,10 +492,10 @@ function uploadDocument(){
|
|||||||
$itemA["buttons"]=array();
|
$itemA["buttons"]=array();
|
||||||
|
|
||||||
$buttonA=array();
|
$buttonA=array();
|
||||||
$buttonA["text"]="btnsave";
|
$buttonA["text"]=G::LoadTranslation('ID_SAVE');
|
||||||
$buttonA["handler"]="function_standardupload_btnsave";
|
$buttonA["handler"]="function_standardupload_btnsave";
|
||||||
$functionsToReplace["function_standardupload_btnsave"]=' function() {
|
$functionsToReplace["function_standardupload_btnsave"]=' function() {
|
||||||
statusBarMessage( "upload_processing", true, true );
|
statusBarMessage( "'.G::LoadTranslation('ID_UPLOADING_FILE').'", true, true );
|
||||||
form = Ext.getCmp("uploadform").getForm();
|
form = Ext.getCmp("uploadform").getForm();
|
||||||
|
|
||||||
//Ext.getCmp("uploadform").getForm().submit();
|
//Ext.getCmp("uploadform").getForm().submit();
|
||||||
@@ -534,7 +534,7 @@ function uploadDocument(){
|
|||||||
|
|
||||||
$buttonA=array();
|
$buttonA=array();
|
||||||
|
|
||||||
$buttonA["text"]= "btncancel";
|
$buttonA["text"]= G::LoadTranslation('ID_CANCEL');
|
||||||
$buttonA["handler"]="function_standardupload_btncancel";
|
$buttonA["handler"]="function_standardupload_btncancel";
|
||||||
$functionsToReplace["function_standardupload_btncancel"]=' function() { Ext.getCmp("dialog").destroy(); }';
|
$functionsToReplace["function_standardupload_btncancel"]=' function() { Ext.getCmp("dialog").destroy(); }';
|
||||||
$itemA["buttons"][]=$buttonA;
|
$itemA["buttons"][]=$buttonA;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
unset($_SESSION['__currentTabDashboard']);
|
unset($_SESSION['__currentTabDashboard']);
|
||||||
if(isset($_GET['action'])){
|
if(isset($_GET['action'])){
|
||||||
$_SESSION['__currentTabDashboard']=$_GET['action'];
|
$_SESSION['__currentTabDashboard']=$_GET['action'];
|
||||||
}
|
}
|
||||||
$page="";
|
$page="";
|
||||||
if(isset($_GET['action'])){
|
if(isset($_GET['action'])){
|
||||||
$page=$_GET['action'];
|
$page=$_GET['action'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$oHeadPublisher =& headPublisher::getSingleton();
|
$oHeadPublisher =& headPublisher::getSingleton();
|
||||||
@@ -55,9 +55,9 @@ $loadingHTML ='
|
|||||||
print_r($loadingHTML);
|
print_r($loadingHTML);
|
||||||
|
|
||||||
switch($page){
|
switch($page){
|
||||||
case "startCase":
|
case "startCase":
|
||||||
|
|
||||||
$labels = G::getTranslations(Array(
|
$labels = G::getTranslations(Array(
|
||||||
'ID_FIND_A_PROCESS',
|
'ID_FIND_A_PROCESS',
|
||||||
'ID_PROCESS_INFORMATION', 'ID_PROCESS', 'ID_TASK', 'ID_DESCRIPTION', 'ID_CATEGORY',
|
'ID_PROCESS_INFORMATION', 'ID_PROCESS', 'ID_TASK', 'ID_DESCRIPTION', 'ID_CATEGORY',
|
||||||
'ID_GENERAL_PROCESS_NUMBERS', 'ID_INBOX', 'ID_DRAFT', 'ID_COMPLETED', 'ID_CANCELLED', 'ID_TOTAL_CASES',
|
'ID_GENERAL_PROCESS_NUMBERS', 'ID_INBOX', 'ID_DRAFT', 'ID_COMPLETED', 'ID_CANCELLED', 'ID_TOTAL_CASES',
|
||||||
@@ -73,15 +73,15 @@ switch($page){
|
|||||||
|
|
||||||
$oHeadPublisher->addContent( 'cases/casesStartCase'); //adding a html file .html.
|
$oHeadPublisher->addContent( 'cases/casesStartCase'); //adding a html file .html.
|
||||||
break;
|
break;
|
||||||
case "documents":
|
case "documents":
|
||||||
$labels = G::getTranslations(Array(
|
$labels = G::getTranslations(Array(
|
||||||
'ID_FIND_A_PROCESS',
|
'ID_DOWNLOAD', 'ID_DOWNLOADING_FILE', 'ID_LOADING', 'ID_NO_ITEMS_SELECTED', 'ID_SERVER_COMMUNICATION_ERROR', 'ID_DELETE',
|
||||||
'ID_PROCESS_INFORMATION', 'ID_PROCESS', 'ID_TASK', 'ID_DESCRIPTION', 'ID_CATEGORY',
|
'ID_DELETE_SELECTED_ITEMS', 'ID_ROOT_FOLDER', 'ID_RELOAD', 'ID_SEARCH', 'ID_NEW_FOLDER', 'ID_COPY',
|
||||||
'ID_GENERAL_PROCESS_NUMBERS', 'ID_INBOX', 'ID_DRAFT', 'ID_COMPLETED', 'ID_CANCELLED', 'ID_TOTAL_CASES',
|
'ID_MOVE', 'ID_DELETE', 'ID_RENAME', 'ID_DOWNLOAD',
|
||||||
'ID_CALENDAR', 'ID_CALENDAR_DESCRIPTION', 'ID_WORKING_DAYS', 'ID_DEBUG_MODE',
|
'ID_UPLOAD', 'ID_SHOW_DIRS', 'ID_FILTER_CURRENT_VIEW', 'ID_DISPLAY_EMPTY', 'ID_PAGE', 'ID_FIRST', 'ID_LAST',
|
||||||
'ID_SUN', 'ID_MON', 'ID_TUE', 'ID_WEN', 'ID_THU', 'ID_FRI', 'ID_SAT',
|
'ID_NEXT', 'ID_PREVIOUS', 'ID_DONE',
|
||||||
'ID_TITLE_START_CASE', 'ID_STARTING_NEW_CASE', 'ID_ERROR_CREATING_NEW_CASE',
|
'ID_NAME', 'ID_VERSION', 'ID_MODIFIED', 'ID_OWNER', 'ID_TYPE', 'ID_PROCESS', 'ID_CASE', 'ID_SIZE', 'ID_PERMISSIONS', 'ID_CONFIRM',
|
||||||
'ID_ERROR', 'ID_UNABLE_START_CASE'
|
'ID_DIRECTORY'
|
||||||
));
|
));
|
||||||
$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
$oHeadPublisher->assign('TRANSLATIONS', $labels);
|
||||||
|
|
||||||
@@ -91,15 +91,15 @@ switch($page){
|
|||||||
$oHeadPublisher->addExtJsScript('cases/casesDocuments', false); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript('cases/casesDocuments', false); //adding a javascript file .js
|
||||||
$oHeadPublisher->addContent( 'cases/casesDocuments'); //adding a html file .html.
|
$oHeadPublisher->addContent( 'cases/casesDocuments'); //adding a html file .html.
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
$oHeadPublisher->usingExtJs('ux.treefilterx/Ext.ux.tree.TreeFilterX');
|
$oHeadPublisher->usingExtJs('ux.treefilterx/Ext.ux.tree.TreeFilterX');
|
||||||
|
|
||||||
$oHeadPublisher->usingExtJs('ux.locationbar/Ext.ux.LocationBar');
|
$oHeadPublisher->usingExtJs('ux.locationbar/Ext.ux.LocationBar');
|
||||||
$oHeadPublisher->usingExtJs('ux.statusbar/ext-statusbar');
|
$oHeadPublisher->usingExtJs('ux.statusbar/ext-statusbar');
|
||||||
$oHeadPublisher->addExtJsScript('cases/casesStartPage', false); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript('cases/casesStartPage', false); //adding a javascript file .js
|
||||||
$oHeadPublisher->addContent( 'cases/casesStartPage'); //adding a html file .html.
|
$oHeadPublisher->addContent( 'cases/casesStartPage'); //adding a html file .html.
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,14 +9,15 @@ new Ext.KeyMap(document, {
|
|||||||
}
|
}
|
||||||
e.stopEvent();
|
e.stopEvent();
|
||||||
datastore.reload();
|
datastore.reload();
|
||||||
//Ext.getCmp('dirTree').getRootNode().reload();
|
// Ext.getCmp('dirTree').getRootNode().reload();
|
||||||
}else{
|
}else{
|
||||||
// Ext.Msg.alert(TRANSLATIONS.ID_REFRESH_LABEL, TRANSLATIONS.ID_REFRESH_MESSAGE);
|
// Ext.Msg.alert(TRANSLATIONS.ID_REFRESH_LABEL,
|
||||||
|
// TRANSLATIONS.ID_REFRESH_MESSAGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//Ext.BLANK_IMAGE_URL = 'resources/s.gif';
|
// Ext.BLANK_IMAGE_URL = 'resources/s.gif';
|
||||||
|
|
||||||
Ext.chart.Chart.CHART_URL = '/images/charts.swf';
|
Ext.chart.Chart.CHART_URL = '/images/charts.swf';
|
||||||
Ext.FlashComponent.EXPRESS_INSTALL_URL = '/images/expressinstall.swf';
|
Ext.FlashComponent.EXPRESS_INSTALL_URL = '/images/expressinstall.swf';
|
||||||
@@ -35,7 +36,7 @@ streamFilefromPM=function(fileStream) {
|
|||||||
success: function(response) {
|
success: function(response) {
|
||||||
results = Ext.decode(response.responseText);
|
results = Ext.decode(response.responseText);
|
||||||
if(results.success=='success'){
|
if(results.success=='success'){
|
||||||
messageText="Downloading file "+results.message;
|
messageText=TRANSLATIONS.ID_DOWNLOADING_FILE+" "+results.message;
|
||||||
statusBarMessage( messageText, true, true );
|
statusBarMessage( messageText, true, true );
|
||||||
try {
|
try {
|
||||||
Ext.destroy(Ext.get('downloadIframe'));
|
Ext.destroy(Ext.get('downloadIframe'));
|
||||||
@@ -81,15 +82,15 @@ function chDir( directory, loadGridOnly ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tb = ext_itemgrid.getTopToolbar();
|
tb = ext_itemgrid.getTopToolbar();
|
||||||
if(directory=="NA"){ //Disable create new folder under NA
|
if(directory=="NA"){ // Disable create new folder under NA
|
||||||
tb.items.get('tb_new').disable();
|
tb.items.get('tb_new').disable();
|
||||||
}else{
|
}else{
|
||||||
tb.items.get('tb_new').enable();
|
tb.items.get('tb_new').enable();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
tb.items.get('tb_delete')[selections[0].get('is_deletable') ? 'enable'
|
* tb.items.get('tb_delete')[selections[0].get('is_deletable') ? 'enable' :
|
||||||
: 'disable']();
|
* 'disable']();
|
||||||
*/
|
*/
|
||||||
if( !loadGridOnly ) {
|
if( !loadGridOnly ) {
|
||||||
expandTreeToDir( null, directory );
|
expandTreeToDir( null, directory );
|
||||||
}
|
}
|
||||||
@@ -165,7 +166,7 @@ function showLoadingIndicator( el, replaceContent ) {
|
|||||||
// console.info("showLoadingIndicator");
|
// console.info("showLoadingIndicator");
|
||||||
if( !el ) return;
|
if( !el ) return;
|
||||||
var loadingimg = '/images/documents/_indicator.gif';
|
var loadingimg = '/images/documents/_indicator.gif';
|
||||||
var imgtag = '<' + 'img src="'+ loadingimg + '" alt="Loading..." border="0" name="Loading" align="absmiddle" />';
|
var imgtag = '<' + 'img src="'+ loadingimg + '" alt="'+TRANSLATIONS.ID_LOADING+'" border="0" name="'+TRANSLATIONS.ID_LOADING+'" align="absmiddle" />';
|
||||||
|
|
||||||
if( replaceContent ) {
|
if( replaceContent ) {
|
||||||
el.innerHTML = imgtag;
|
el.innerHTML = imgtag;
|
||||||
@@ -208,7 +209,7 @@ function openActionDialog( caller, action ) {
|
|||||||
}
|
}
|
||||||
var dontNeedSelection = { newFolder:1, uploadDocument:1, search:1 };
|
var dontNeedSelection = { newFolder:1, uploadDocument:1, search:1 };
|
||||||
if( dontNeedSelection[action] == null && selectedRows.length < 1 ) {
|
if( dontNeedSelection[action] == null && selectedRows.length < 1 ) {
|
||||||
Ext.Msg.alert( 'error','No items Selected');
|
Ext.Msg.alert( 'Error',TRANSLATIONS.ID_NO_ITEMS_SELECTED);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -252,7 +253,7 @@ function openActionDialog( caller, action ) {
|
|||||||
scripts: true,
|
scripts: true,
|
||||||
callback: function(oElement, bSuccess, oResponse) {
|
callback: function(oElement, bSuccess, oResponse) {
|
||||||
if( !bSuccess ) {
|
if( !bSuccess ) {
|
||||||
msgbox = Ext.Msg.alert( "Ajax communication failure!");
|
msgbox = Ext.Msg.alert( TRANSLATIONS.ID_SERVER_COMMUNICATION_ERROR);
|
||||||
msgbox.setIcon( Ext.MessageBox.ERROR );
|
msgbox.setIcon( Ext.MessageBox.ERROR );
|
||||||
}
|
}
|
||||||
if( oResponse && oResponse.responseText ) {
|
if( oResponse && oResponse.responseText ) {
|
||||||
@@ -361,19 +362,19 @@ function openActionDialog( caller, action ) {
|
|||||||
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
var num = selectedRows.length;
|
var num = selectedRows.length;
|
||||||
Ext.Msg.confirm('dellink?', String.format("miscdelitems", num ), deleteFiles);
|
Ext.Msg.confirm(TRANSLATIONS.ID_DELETE, String.format(TRANSLATIONS.ID_DELETE_SELECTED_ITEMS, num ), deleteFiles);
|
||||||
break;
|
break;
|
||||||
case 'download':
|
case 'download':
|
||||||
fileName=ext_itemgrid.getSelectionModel().getSelected().get('name');
|
fileName=ext_itemgrid.getSelectionModel().getSelected().get('name');
|
||||||
//alert(ext_itemgrid.getSelectionModel().getSelected().get('downloadLink'));
|
// alert(ext_itemgrid.getSelectionModel().getSelected().get('downloadLink'));
|
||||||
//alert(ext_itemgrid.getSelectionModel().getSelected().get('downloadLabel'));
|
// alert(ext_itemgrid.getSelectionModel().getSelected().get('downloadLabel'));
|
||||||
streamFilefromPM(ext_itemgrid.getSelectionModel().getSelected().get('downloadLink'));
|
streamFilefromPM(ext_itemgrid.getSelectionModel().getSelected().get('downloadLink'));
|
||||||
/*if(document.location = ext_itemgrid.getSelectionModel().getSelected().get('downloadLink')){
|
/*
|
||||||
messageText="Downloading file "+fileName;
|
* if(document.location =
|
||||||
statusBarMessage( messageText, false, true );
|
* ext_itemgrid.getSelectionModel().getSelected().get('downloadLink')){
|
||||||
}else{
|
* messageText="Downloading file "+fileName; statusBarMessage(
|
||||||
alert("sadasd");
|
* messageText, false, true ); }else{ alert("sadasd"); }
|
||||||
}*/
|
*/
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -522,7 +523,7 @@ function handleCallback(requestParams, node) {
|
|||||||
|
|
||||||
function statusBarMessage( msg, isLoading, success ) {
|
function statusBarMessage( msg, isLoading, success ) {
|
||||||
// console.log("Status Bar needed");
|
// console.log("Status Bar needed");
|
||||||
//console.log(msg);
|
// console.log(msg);
|
||||||
var statusBar = Ext.getCmp('statusPanel');
|
var statusBar = Ext.getCmp('statusPanel');
|
||||||
if( !statusBar ) return;
|
if( !statusBar ) return;
|
||||||
// console.log("Status bar acceced: "+msg);
|
// console.log("Status bar acceced: "+msg);
|
||||||
@@ -534,18 +535,18 @@ function handleCallback(requestParams, node) {
|
|||||||
}
|
}
|
||||||
if( success ) {
|
if( success ) {
|
||||||
statusBar.setStatus({
|
statusBar.setStatus({
|
||||||
text: 'Success: ' + msg,
|
text: '' + msg,
|
||||||
iconCls: 'success',
|
iconCls: 'success',
|
||||||
clear: true
|
clear: true
|
||||||
});
|
});
|
||||||
Ext.msgBoxSlider.msg('Success', msg );
|
Ext.msgBoxSlider.msg('', msg );
|
||||||
} else {
|
} else {
|
||||||
statusBar.setStatus({
|
statusBar.setStatus({
|
||||||
text: 'error: ' + msg,
|
text: 'Error: ' + msg,
|
||||||
iconCls: 'error',
|
iconCls: 'error',
|
||||||
clear: true
|
clear: true
|
||||||
});
|
});
|
||||||
Ext.msgBoxSlider.msg('error', msg );
|
Ext.msgBoxSlider.msg('Error', msg );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -685,10 +686,16 @@ function renderType(value, p, record) {
|
|||||||
function renderVersion(value, p, record) {
|
function renderVersion(value, p, record) {
|
||||||
if(record.get("appDocVersionable")=="1"){
|
if(record.get("appDocVersionable")=="1"){
|
||||||
if(value>1){
|
if(value>1){
|
||||||
//return String.format('<b>{0}</b> <a href="#"><img src="{1}" border="0" title="Upload New Version" valign="absmiddle" onClick="alert(\'{2}\');return false;"/></a>', value,'/images/documents/_up.png','Upload new Version');
|
// return String.format('<b>{0}</b> <a
|
||||||
|
// href="#"><img src="{1}" border="0" title="Upload New Version"
|
||||||
|
// valign="absmiddle" onClick="alert(\'{2}\');return false;"/></a>',
|
||||||
|
// value,'/images/documents/_up.png','Upload new Version');
|
||||||
return String.format('<b>{0}</b>', value);
|
return String.format('<b>{0}</b>', value);
|
||||||
}else{
|
}else{
|
||||||
//return String.format('{0} <a href="#"><img src="{1}" border="0" title="Upload New Version" valign="absmiddle" onClick="alert(\'{2}\');return false;"/></a>', value,'/images/documents/_up.png','Upload new Version');
|
// return String.format('{0} <a href="#"><img
|
||||||
|
// src="{1}" border="0" title="Upload New Version"
|
||||||
|
// valign="absmiddle" onClick="alert(\'{2}\');return false;"/></a>',
|
||||||
|
// value,'/images/documents/_up.png','Upload new Version');
|
||||||
return String.format('{0}', value);
|
return String.format('{0}', value);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
@@ -700,11 +707,12 @@ function renderVersionExpander(value, p, record) {
|
|||||||
// addcc.png
|
// addcc.png
|
||||||
// system-search.png
|
// system-search.png
|
||||||
p.cellAttr = 'rowspan="2"';
|
p.cellAttr = 'rowspan="2"';
|
||||||
//return '<div class="x-grid3-row-expander"> </div>';
|
// return '<div class="x-grid3-row-expander"> </div>';
|
||||||
if(record.get("appDocVersionable")=="1"){
|
if(record.get("appDocVersionable")=="1"){
|
||||||
if(value>1){
|
if(value>1){
|
||||||
return '<div class="x-grid3-row-expander"> </div>';
|
return '<div class="x-grid3-row-expander"> </div>';
|
||||||
//return String.format('<div class="x-grid3-row-expander">{0}</div>', value);
|
// return String.format('<div
|
||||||
|
// class="x-grid3-row-expander">{0}</div>', value);
|
||||||
}else{
|
}else{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
@@ -719,9 +727,10 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_home',
|
id : 'tb_home',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_house',//icon : '/images/documents/_home.png',
|
iconCls: 'button_menu_ext ss_sprite ss_house',// icon :
|
||||||
|
// '/images/documents/_home.png',
|
||||||
// text : 'Root',
|
// text : 'Root',
|
||||||
tooltip : 'Root Folder',
|
tooltip : TRANSLATIONS.ID_ROOT_FOLDER,
|
||||||
// cls : 'x-btn-text-icon',
|
// cls : 'x-btn-text-icon',
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
handler : function() {
|
handler : function() {
|
||||||
@@ -731,9 +740,11 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_reload',
|
id : 'tb_reload',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_arrow_refresh',//icon : '/images/documents/_reload.png',
|
iconCls: 'button_menu_ext ss_sprite ss_arrow_refresh',// icon
|
||||||
|
// :
|
||||||
|
// '/images/documents/_reload.png',
|
||||||
// text : 'Reload',
|
// text : 'Reload',
|
||||||
tooltip : 'Reload',
|
tooltip : TRANSLATIONS.ID_RELOAD,
|
||||||
// cls : 'x-btn-text-icon',
|
// cls : 'x-btn-text-icon',
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
handler : loadDir
|
handler : loadDir
|
||||||
@@ -744,7 +755,7 @@ var gridtb = new Ext.Toolbar(
|
|||||||
id : 'tb_search',
|
id : 'tb_search',
|
||||||
icon : '/images/documents/_filefind.png',
|
icon : '/images/documents/_filefind.png',
|
||||||
// text : 'Search',
|
// text : 'Search',
|
||||||
tooltip : 'Search',
|
tooltip : TRANSLATIONS.ID_SEARCH,
|
||||||
// cls : 'x-btn-text-icon',
|
// cls : 'x-btn-text-icon',
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
disabled : true,
|
disabled : true,
|
||||||
@@ -757,8 +768,10 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_new',
|
id : 'tb_new',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_folder_add',//icon : '/images/documents/_filenew.png',
|
iconCls: 'button_menu_ext ss_sprite ss_folder_add',// icon
|
||||||
tooltip : 'New Folder',
|
// :
|
||||||
|
// '/images/documents/_filenew.png',
|
||||||
|
tooltip : TRANSLATIONS.ID_NEW_FOLDER,
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
disabled : false,
|
disabled : false,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
@@ -768,8 +781,10 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_copy',
|
id : 'tb_copy',
|
||||||
icon : '/images/documents/_editcopy.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_copy',// icon :
|
||||||
tooltip : 'Copy',
|
// '/images/documents/_editcopy.png',
|
||||||
|
|
||||||
|
tooltip : TRANSLATIONS.ID_COPY,
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
disabled : false,
|
disabled : false,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
@@ -780,8 +795,9 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_move',
|
id : 'tb_move',
|
||||||
icon : '/images/documents/_move.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_go',// icon :
|
||||||
tooltip : 'Move',
|
// '/images/documents/_move.png',
|
||||||
|
tooltip : TRANSLATIONS.ID_MOVE,
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
disabled : false,
|
disabled : false,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
@@ -792,8 +808,10 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_delete',
|
id : 'tb_delete',
|
||||||
icon : '/images/documents/_editdelete.png',
|
iconCls: 'button_menu_ext ss_sprite ss_folder_delete',// icon
|
||||||
tooltip : 'dellink',
|
// :
|
||||||
|
// '/images/documents/_editdelete.png',
|
||||||
|
tooltip : TRANSLATIONS.ID_DELETE,
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
disabled : true,
|
disabled : true,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
@@ -804,8 +822,9 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_rename',
|
id : 'tb_rename',
|
||||||
icon : '/images/documents/_fonts.png',
|
iconCls: 'button_menu_ext ss_sprite ss_textfield_rename',// icon :
|
||||||
tooltip : 'renamelink',
|
// '/images/documents/_fonts.png',
|
||||||
|
tooltip : TRANSLATIONS.ID_RENAME,
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
disabled : true,
|
disabled : true,
|
||||||
hidden: true,
|
hidden: true,
|
||||||
@@ -817,8 +836,10 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_download',
|
id : 'tb_download',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_page_white_put',//icon : '/images/documents/_down.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_put',// icon
|
||||||
tooltip : 'Download',
|
// :
|
||||||
|
// '/images/documents/_down.png',
|
||||||
|
tooltip : TRANSLATIONS.ID_DOWNLOAD,
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
disabled : true,
|
disabled : true,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
@@ -828,8 +849,10 @@ var gridtb = new Ext.Toolbar(
|
|||||||
{
|
{
|
||||||
xtype : "tbbutton",
|
xtype : "tbbutton",
|
||||||
id : 'tb_upload',
|
id : 'tb_upload',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_page_white_get',//icon : '/images/documents/_up.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_get',// icon
|
||||||
tooltip : 'Upload',
|
// :
|
||||||
|
// '/images/documents/_up.png',
|
||||||
|
tooltip : TRANSLATIONS.ID_UPLOAD,
|
||||||
cls : 'x-btn-icon',
|
cls : 'x-btn-icon',
|
||||||
disabled : false,
|
disabled : false,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
@@ -848,7 +871,7 @@ var gridtb = new Ext.Toolbar(
|
|||||||
},
|
},
|
||||||
'-',
|
'-',
|
||||||
new Ext.Toolbar.Button({
|
new Ext.Toolbar.Button({
|
||||||
text : 'Show Dirs',
|
text : TRANSLATIONS.ID_SHOW_DIRS,
|
||||||
enableToggle : true,
|
enableToggle : true,
|
||||||
pressed : true,
|
pressed : true,
|
||||||
handler : function(btn, e) {
|
handler : function(btn, e) {
|
||||||
@@ -864,8 +887,8 @@ var gridtb = new Ext.Toolbar(
|
|||||||
name : "filterValue",
|
name : "filterValue",
|
||||||
id : "filterField",
|
id : "filterField",
|
||||||
enableKeyEvents : true,
|
enableKeyEvents : true,
|
||||||
title : "Filter current view",
|
title : TRANSLATIONS.ID_FILTER_CURRENT_VIEW,
|
||||||
emptyText : 'Filter current view',
|
emptyText : TRANSLATIONS.ID_FILTER_CURRENT_VIEW,
|
||||||
listeners : {
|
listeners : {
|
||||||
"keypress" : {
|
"keypress" : {
|
||||||
fn : function(textfield, e) {
|
fn : function(textfield, e) {
|
||||||
@@ -898,29 +921,29 @@ var gridbb = new Ext.PagingToolbar({
|
|||||||
pageSize : 25 ,
|
pageSize : 25 ,
|
||||||
displayInfo : true,
|
displayInfo : true,
|
||||||
// displayMsg : '% % %',
|
// displayMsg : '% % %',
|
||||||
emptyMsg : 'No items to display',
|
emptyMsg : TRANSLATIONS.ID_DISPLAY_EMPTY,
|
||||||
beforePageText : 'Page',
|
beforePageText : TRANSLATIONS.ID_PAGE,
|
||||||
// afterPageText : 'of %',
|
// afterPageText : 'of %',
|
||||||
firstText : 'First',
|
firstText : TRANSLATIONS.ID_FIRST,
|
||||||
lastText : 'Last',
|
lastText : TRANSLATIONS.ID_LAST,
|
||||||
nextText : 'Next',
|
nextText : TRANSLATIONS.ID_NEXT,
|
||||||
prevText : 'Previous',
|
prevText : TRANSLATIONS.ID_PREVIOUS,
|
||||||
refreshText : 'Reload',
|
refreshText : TRANSLATIONS.ID_RELOAD,
|
||||||
items : [ '-', ' ', ' ', ' ', ' ', ' ', new Ext.ux.StatusBar({
|
items : [ '-', ' ', ' ', ' ', ' ', ' ', new Ext.ux.StatusBar({
|
||||||
defaultText : 'Done',
|
defaultText : TRANSLATIONS.ID_DONE,
|
||||||
id : 'statusPanel'
|
id : 'statusPanel'
|
||||||
}) ]
|
}) ]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
var getGrid = function( data, element) {
|
var getGrid = function( data, element) {
|
||||||
//var grid = Ext.getCmp('gridpanel');
|
// var grid = Ext.getCmp('gridpanel');
|
||||||
|
|
||||||
var grid = new Ext.grid.GridPanel({
|
var grid = new Ext.grid.GridPanel({
|
||||||
store: datastore,
|
store: datastore,
|
||||||
cm: cm,
|
cm: cm,
|
||||||
stripeRows: true,
|
stripeRows: true,
|
||||||
//autoExpandColumn: 'company',
|
// autoExpandColumn: 'company',
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
border: false,
|
border: false,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -938,15 +961,15 @@ var getGrid = function( data, element) {
|
|||||||
|
|
||||||
var expander = new Ext.ux.grid.RowExpander({
|
var expander = new Ext.ux.grid.RowExpander({
|
||||||
tpl : '<div class="ux-row-expander-box" style="border: 2px solid red;"></div>',
|
tpl : '<div class="ux-row-expander-box" style="border: 2px solid red;"></div>',
|
||||||
//header:'Version',
|
// header:'Version',
|
||||||
/* tpl : new Ext.Template(
|
/*
|
||||||
'<p><b>Company:</b> {company}</p><br>',
|
* tpl : new Ext.Template( '<p><b>Company:</b> {company}</p><br>', '<p><b>Summary:</b>
|
||||||
'<p><b>Summary:</b> {desc}</p>'
|
* {desc}</p>' ),
|
||||||
),*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//width : 50,
|
// width : 50,
|
||||||
//align : 'center',
|
// align : 'center',
|
||||||
expandOnEnter: false,
|
expandOnEnter: false,
|
||||||
expandOnDblClick: false,
|
expandOnDblClick: false,
|
||||||
fixed: false,
|
fixed: false,
|
||||||
@@ -957,7 +980,7 @@ var expander = new Ext.ux.grid.RowExpander({
|
|||||||
expand : function( expander, record, body, rowIndex) {
|
expand : function( expander, record, body, rowIndex) {
|
||||||
data = new Array();
|
data = new Array();
|
||||||
getGrid( data, Ext.get( this.grid.getView().getRow( rowIndex)).child( '.ux-row-expander-box'));
|
getGrid( data, Ext.get( this.grid.getView().getRow( rowIndex)).child( '.ux-row-expander-box'));
|
||||||
//alert( Ext.ComponentMgr.all.length);
|
// alert( Ext.ComponentMgr.all.length);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
renderer : renderVersionExpander
|
renderer : renderVersionExpander
|
||||||
@@ -969,7 +992,7 @@ renderer : renderVersionExpander
|
|||||||
var cm = new Ext.grid.ColumnModel([{
|
var cm = new Ext.grid.ColumnModel([{
|
||||||
id : 'gridcm', // id assigned so we can apply custom css (e.g.
|
id : 'gridcm', // id assigned so we can apply custom css (e.g.
|
||||||
// .x-grid-col-topic b { color:#333 })
|
// .x-grid-col-topic b { color:#333 })
|
||||||
header : "Name",
|
header : TRANSLATIONS.ID_NAME,
|
||||||
dataIndex : 'name',
|
dataIndex : 'name',
|
||||||
width : 200,
|
width : 200,
|
||||||
renderer : renderFileName,
|
renderer : renderFileName,
|
||||||
@@ -978,17 +1001,17 @@ var cm = new Ext.grid.ColumnModel([{
|
|||||||
}),
|
}),
|
||||||
css : 'white-space:normal;'
|
css : 'white-space:normal;'
|
||||||
}, {
|
}, {
|
||||||
header : "Version",
|
header : TRANSLATIONS.ID_VERSION,
|
||||||
dataIndex : 'docVersion',
|
dataIndex : 'docVersion',
|
||||||
width : 50,
|
width : 50,
|
||||||
align : 'center',
|
align : 'center',
|
||||||
renderer : renderVersion
|
renderer : renderVersion
|
||||||
}, /*expander,*/{
|
}, /* expander, */{
|
||||||
header : "Modified",
|
header : TRANSLATIONS.ID_MODIFIED,
|
||||||
dataIndex : 'appDocCreateDate',
|
dataIndex : 'appDocCreateDate',
|
||||||
width : 65
|
width : 65
|
||||||
}, {
|
}, {
|
||||||
header : "Owner",
|
header : TRANSLATIONS.ID_OWNER,
|
||||||
dataIndex : 'owner',
|
dataIndex : 'owner',
|
||||||
width : 100
|
width : 100
|
||||||
// sortable : false
|
// sortable : false
|
||||||
@@ -1000,36 +1023,35 @@ var cm = new Ext.grid.ColumnModel([{
|
|||||||
// align : 'right'
|
// align : 'right'
|
||||||
// renderer : renderType
|
// renderer : renderType
|
||||||
}, {
|
}, {
|
||||||
header : "Type",
|
header : TRANSLATIONS.ID_TYPE,
|
||||||
dataIndex : 'type',
|
dataIndex : 'type',
|
||||||
width : 100,
|
width : 100,
|
||||||
// align : 'right',
|
// align : 'right',
|
||||||
renderer : renderType
|
renderer : renderType
|
||||||
}, {
|
}, {
|
||||||
header : "Process",
|
header : TRANSLATIONS.ID_PROCESS,
|
||||||
dataIndex : 'proTitle',
|
dataIndex : 'proTitle',
|
||||||
width : 150// ,
|
width : 150// ,
|
||||||
// align : 'right'
|
// align : 'right'
|
||||||
// renderer : renderType
|
// renderer : renderType
|
||||||
}, {
|
}, {
|
||||||
header : "Case",
|
header : TRANSLATIONS.ID_CASE,
|
||||||
dataIndex : 'appLabel',
|
dataIndex : 'appLabel',
|
||||||
width : 150// ,
|
width : 150// ,
|
||||||
// align : 'right'
|
// align : 'right'
|
||||||
// renderer : renderType
|
// renderer : renderType
|
||||||
},{
|
},{
|
||||||
header : "Size",
|
header : TRANSLATIONS.ID_SIZE,
|
||||||
dataIndex : 'size',
|
dataIndex : 'size',
|
||||||
width : 50,
|
width : 50,
|
||||||
hidden:true
|
hidden:true
|
||||||
}, {
|
}, {
|
||||||
header : "Permissions",
|
header : TRANSLATIONS.ID_PERMISSIONS,
|
||||||
dataIndex : 'perms',
|
dataIndex : 'perms',
|
||||||
width : 100,
|
width : 100,
|
||||||
hidden:true
|
hidden:true
|
||||||
}, {
|
}, {
|
||||||
dataIndex : 'is_deletable',
|
dataIndex : 'is_deletable',
|
||||||
header : "is_deletable",
|
|
||||||
hidden : true,
|
hidden : true,
|
||||||
hideable : false
|
hideable : false
|
||||||
}, {
|
}, {
|
||||||
@@ -1140,37 +1162,42 @@ gridCtxMenu = new Ext.menu.Menu({
|
|||||||
|
|
||||||
items : [ {
|
items : [ {
|
||||||
id : 'gc_rename',
|
id : 'gc_rename',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_textfield_rename',//icon : '/images/documents/_fonts.png',
|
iconCls: 'button_menu_ext ss_sprite ss_textfield_rename',// icon :
|
||||||
text : 'renamelink',
|
// '/images/documents/_fonts.png',
|
||||||
|
text : TRANSLATIONS.ID_RENAME,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
ext_itemgrid.onCellDblClick(ext_itemgrid, gsm.clickedRow, 0);
|
ext_itemgrid.onCellDblClick(ext_itemgrid, gsm.clickedRow, 0);
|
||||||
gsm.clickedRow = null;
|
gsm.clickedRow = null;
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
id : 'gc_copy',
|
id : 'gc_copy',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_page_white_copy',//icon : '/images/documents/_editcopy.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_copy',// icon :
|
||||||
text : 'copylink',
|
// '/images/documents/_editcopy.png',
|
||||||
|
text : TRANSLATIONS.ID_COPY,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
openActionDialog(this, 'copyAction');
|
openActionDialog(this, 'copyAction');
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
id : 'gc_move',
|
id : 'gc_move',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_page_white_go',//icon : '/images/documents/_move.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_go',// icon :
|
||||||
text : 'movelink',
|
// '/images/documents/_move.png',
|
||||||
|
text : TRANSLATIONS.ID_MOVE,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
openActionDialog(this, 'moveAction');
|
openActionDialog(this, 'moveAction');
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
id : 'gc_delete',
|
id : 'gc_delete',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_page_white_delete',//icon : '/images/documents/_editdelete.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_delete',// icon :
|
||||||
text : 'dellink',
|
// '/images/documents/_editdelete.png',
|
||||||
|
text : TRANSLATIONS.ID_DELETE,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
openActionDialog(this, 'delete');
|
openActionDialog(this, 'delete');
|
||||||
}
|
}
|
||||||
}, '-', {
|
}, '-', {
|
||||||
id : 'gc_download',
|
id : 'gc_download',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_page_white_put',//icon : '/images/documents/_down.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_put',// icon :
|
||||||
text : 'downlink',
|
// '/images/documents/_down.png',
|
||||||
|
text : TRANSLATIONS.ID_DOWNLOAD,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
openActionDialog(this, 'download');
|
openActionDialog(this, 'download');
|
||||||
}
|
}
|
||||||
@@ -1178,8 +1205,9 @@ gridCtxMenu = new Ext.menu.Menu({
|
|||||||
|
|
||||||
'-', {
|
'-', {
|
||||||
id : 'cancel',
|
id : 'cancel',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_cross',//icon : '/images/documents/_cancel.png',
|
iconCls: 'button_menu_ext ss_sprite ss_cross',// icon :
|
||||||
text : 'btncancel',
|
// '/images/documents/_cancel.png',
|
||||||
|
text : TRANSLATIONS.ID_CANCEL,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
gridCtxMenu.hide();
|
gridCtxMenu.hide();
|
||||||
}
|
}
|
||||||
@@ -1236,8 +1264,10 @@ var dirCtxMenu = new Ext.menu.Menu(
|
|||||||
items : [
|
items : [
|
||||||
{
|
{
|
||||||
id : 'dirCtxMenu_new',
|
id : 'dirCtxMenu_new',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_folder_add',//icon : '/images/documents/_folder_new.png',
|
iconCls: 'button_menu_ext ss_sprite ss_folder_add',// icon
|
||||||
text : 'New',
|
// :
|
||||||
|
// '/images/documents/_folder_new.png',
|
||||||
|
text : TRANSLATIONS.ID_NEW_FOLDER,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
dirCtxMenu.hide();
|
dirCtxMenu.hide();
|
||||||
openActionDialog(this, 'newFolder');
|
openActionDialog(this, 'newFolder');
|
||||||
@@ -1245,8 +1275,10 @@ var dirCtxMenu = new Ext.menu.Menu(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id : 'dirCtxMenu_rename',
|
id : 'dirCtxMenu_rename',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_textfield_rename',//icon : '/images/documents/_fonts.png',
|
iconCls: 'button_menu_ext ss_sprite ss_textfield_rename',// icon
|
||||||
text : 'Rename',
|
// :
|
||||||
|
// '/images/documents/_fonts.png',
|
||||||
|
text : TRANSLATIONS.ID_RENAME,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
dirCtxMenu.hide();
|
dirCtxMenu.hide();
|
||||||
openActionDialog(this, 'rename');
|
openActionDialog(this, 'rename');
|
||||||
@@ -1254,8 +1286,10 @@ var dirCtxMenu = new Ext.menu.Menu(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id : 'dirCtxMenu_copy',
|
id : 'dirCtxMenu_copy',
|
||||||
icon : '/images/documents/_editcopy.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_copy',// icon :
|
||||||
text : 'Copy',
|
// '/images/documents/_editcopy.png',
|
||||||
|
|
||||||
|
text : TRANSLATIONS.ID_COPY,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
dirCtxMenu.hide();
|
dirCtxMenu.hide();
|
||||||
openActionDialog(this, 'copyAction');
|
openActionDialog(this, 'copyAction');
|
||||||
@@ -1263,8 +1297,10 @@ var dirCtxMenu = new Ext.menu.Menu(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id : 'dirCtxMenu_move',
|
id : 'dirCtxMenu_move',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_folder_go',//icon : '/images/documents/_move.png',
|
iconCls: 'button_menu_ext ss_sprite ss_folder_go',// icon
|
||||||
text : 'Move',
|
// :
|
||||||
|
// '/images/documents/_move.png',
|
||||||
|
text : TRANSLATIONS.ID_MOVE,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
dirCtxMenu.hide();
|
dirCtxMenu.hide();
|
||||||
openActionDialog(this, 'moveAction');
|
openActionDialog(this, 'moveAction');
|
||||||
@@ -1272,17 +1308,20 @@ var dirCtxMenu = new Ext.menu.Menu(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id : 'dirCtxMenu_remove',
|
id : 'dirCtxMenu_remove',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_folder_delete',//icon : '/images/documents/_editdelete.png',
|
iconCls: 'button_menu_ext ss_sprite ss_folder_delete',// icon
|
||||||
text : 'Remove',
|
// :
|
||||||
|
// '/images/documents/_editdelete.png',
|
||||||
|
|
||||||
|
text : TRANSLATIONS.ID_DELETE,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
dirCtxMenu.hide();
|
dirCtxMenu.hide();
|
||||||
var num = 1;
|
var num = 1;
|
||||||
Ext.Msg
|
Ext.Msg
|
||||||
.confirm(
|
.confirm(
|
||||||
'Confirm',
|
TRANSLATIONS.ID_CONFIRM,
|
||||||
String
|
String
|
||||||
.format(
|
.format(
|
||||||
"Delete?",
|
TRANSLATIONS.ID_DELETE_SELECTED_ITEMS,
|
||||||
num),
|
num),
|
||||||
function(btn) {
|
function(btn) {
|
||||||
deleteDir(btn, dirCtxMenu.node);
|
deleteDir(btn, dirCtxMenu.node);
|
||||||
@@ -1290,16 +1329,20 @@ var dirCtxMenu = new Ext.menu.Menu(
|
|||||||
}
|
}
|
||||||
}, '-', {
|
}, '-', {
|
||||||
id : 'dirCtxMenu_reload',
|
id : 'dirCtxMenu_reload',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_arrow_refresh',//icon : '/images/documents/_reload.png',
|
iconCls: 'button_menu_ext ss_sprite ss_arrow_refresh',// icon
|
||||||
text : 'Refresh',
|
// :
|
||||||
|
// '/images/documents/_reload.png',
|
||||||
|
text : TRANSLATIONS.ID_REFRESH_LABEL,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
dirCtxMenu.hide();
|
dirCtxMenu.hide();
|
||||||
dirCtxMenu.node.reload();
|
dirCtxMenu.node.reload();
|
||||||
}
|
}
|
||||||
}, '-', {
|
}, '-', {
|
||||||
id : 'dirCtxMenu_cancel',
|
id : 'dirCtxMenu_cancel',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_cross',//icon : '/images/documents/_cancel.png',
|
iconCls: 'button_menu_ext ss_sprite ss_cross',// icon
|
||||||
text : 'Cancel',
|
// :
|
||||||
|
// '/images/documents/_cancel.png',
|
||||||
|
text : TRANSLATIONS.ID_CANCEL,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
dirCtxMenu.hide();
|
dirCtxMenu.hide();
|
||||||
}
|
}
|
||||||
@@ -1309,24 +1352,27 @@ var copymoveCtxMenu = new Ext.menu.Menu({
|
|||||||
id : 'copyCtx',
|
id : 'copyCtx',
|
||||||
items : [ {
|
items : [ {
|
||||||
id : 'copymoveCtxMenu_copy',
|
id : 'copymoveCtxMenu_copy',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_page_white_copy',//icon : '/images/documents/_editcopy.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_copy',// icon :
|
||||||
text : 'copylink',
|
// '/images/documents/_editcopy.png',
|
||||||
|
text : TRANSLATIONS.ID_COPY,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
copymoveCtxMenu.hide();
|
copymoveCtxMenu.hide();
|
||||||
copymove('copyExecute');
|
copymove('copyExecute');
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
id : 'copymoveCtxMenu_move',
|
id : 'copymoveCtxMenu_move',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_page_white_go',//icon : '/images/documents/_move.png',
|
iconCls: 'button_menu_ext ss_sprite ss_page_white_go',// icon :
|
||||||
text : 'movelink',
|
// '/images/documents/_move.png',
|
||||||
|
text : TRANSLATIONS.ID_MOVE,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
copymoveCtxMenu.hide();
|
copymoveCtxMenu.hide();
|
||||||
copymove('moveExecute');
|
copymove('moveExecute');
|
||||||
}
|
}
|
||||||
}, '-', {
|
}, '-', {
|
||||||
id : 'copymoveCtxMenu_cancel',
|
id : 'copymoveCtxMenu_cancel',
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_cross',//icon : '/images/documents/_cancel.png',
|
iconCls: 'button_menu_ext ss_sprite ss_cross',// icon :
|
||||||
text : 'btncancel',
|
// '/images/documents/_cancel.png',
|
||||||
|
text : TRANSLATIONS.ID_CANCEL,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
copymoveCtxMenu.hide();
|
copymoveCtxMenu.hide();
|
||||||
}
|
}
|
||||||
@@ -1357,7 +1403,7 @@ var documentsTab = {
|
|||||||
xtype : "treepanel",
|
xtype : "treepanel",
|
||||||
id : "dirTree",
|
id : "dirTree",
|
||||||
region : "west",
|
region : "west",
|
||||||
title : 'Directory<img src="/images/refresh.gif" hspace="20" style="cursor:pointer;" title="reload" onclick="Ext.getCmp(\'dirTree\').getRootNode().reload();" alt="Reload" align="middle" />',
|
title : TRANSLATIONS.ID_DIRECTORY+' <img src="/images/refresh.gif" hspace="20" style="cursor:pointer;" title="reload" onclick="Ext.getCmp(\'dirTree\').getRootNode().reload();" alt="Reload" align="middle" />',
|
||||||
closable : false,
|
closable : false,
|
||||||
collapsible: true,
|
collapsible: true,
|
||||||
collapseMode: 'mini',
|
collapseMode: 'mini',
|
||||||
|
|||||||
Reference in New Issue
Block a user