mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 08:16:11 +01:00
codemirror: perl support
This commit is contained in:
@@ -480,6 +480,7 @@ fileManager.controller('fileManagerCtrl', function ($scope, $http, FileUploader,
|
||||
restoreBTN.style.display = "none";
|
||||
}
|
||||
// for edit button
|
||||
|
||||
if (allFilesAndFolders.length === 1) {
|
||||
var editNode = document.getElementById("editFile");
|
||||
editNode.style.pointerEvents = "auto";
|
||||
@@ -813,6 +814,14 @@ fileManager.controller('fileManagerCtrl', function ($scope, $http, FileUploader,
|
||||
|
||||
};
|
||||
|
||||
/// code mirror open
|
||||
|
||||
$scope.editWithCodeMirror = function(){
|
||||
var completePathForFile = $scope.currentPath + "/" + allFilesAndFolders[0];
|
||||
var finalURL = 'https://' + window.location.hostname + ':' + window.location.port + '/filemanager/editFile?domainName=' + domainName + '&fileName=' + completePathForFile;
|
||||
window.open(finalURL);
|
||||
};
|
||||
|
||||
|
||||
// uploads
|
||||
|
||||
|
||||
Reference in New Issue
Block a user