mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-14 07:41:14 +01:00
Added log to find and replace to diagnose replace that does nothing error, Updated access denied messages, Continued work on new file manager update, Reverted Market as this work may need to be started on a new branch
This commit is contained in:
parent
825154a4b3
commit
1c481f585a
5 changed files with 27 additions and 42 deletions
|
@ -1415,6 +1415,9 @@
|
|||
var replace = $( '#modal input[name="replace"]' )
|
||||
.val();
|
||||
}
|
||||
|
||||
console.log( action, i, find, replace );
|
||||
|
||||
switch ( action ) {
|
||||
case 'find':
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ class Filemanager extends Common {
|
|||
if( ! Common::checkPath( $path ) ) {
|
||||
|
||||
$response["status"] = "error";
|
||||
$response["message"] = "No access.";
|
||||
$response["message"] = "You do not have access to delete this file";
|
||||
} else {
|
||||
|
||||
$path = self::formatPath( $path );
|
||||
|
|
|
@ -491,6 +491,12 @@
|
|||
node.addClass( 'loading' );
|
||||
$.get( this.controller + '?action=index&path=' + encodeURIComponent( path ), function( data ) {
|
||||
|
||||
let expanded = parentNode.children( 'span' ).hasClass( 'plus' )
|
||||
if( expanded ) {
|
||||
|
||||
parentNode.children( 'span' ).removeClass( 'plus' ).addClass( 'minus' );
|
||||
}
|
||||
|
||||
node.addClass( 'open' );
|
||||
let response = codiad.jsend.parse( data );
|
||||
|
||||
|
|
|
@ -1,47 +1,24 @@
|
|||
/*
|
||||
* Copyright (c) Codiad & daeks (codiad.com), and Isaac Brown (telaaedifex.com), distributed
|
||||
* Copyright (c) Codiad & daeks (codiad.com), distributed
|
||||
* as-is and without warranty under the MIT License. See
|
||||
* [root]/license.txt for more. This information must remain intact.
|
||||
*/
|
||||
|
||||
( function( global, $ ) {
|
||||
(function(global, $){
|
||||
|
||||
let codiad = global.codiad;
|
||||
var codiad = global.codiad;
|
||||
|
||||
$( function() {
|
||||
$(function() {
|
||||
codiad.market.init();
|
||||
});
|
||||
|
||||
codiad.market.init();
|
||||
});
|
||||
codiad.market = {
|
||||
|
||||
codiad.market = {
|
||||
controller: 'components/market/controller.php',
|
||||
dialog: 'components/market/dialog.php',
|
||||
|
||||
controller: 'components/market/controller.php',
|
||||
dialog: 'components/market/dialog.php',
|
||||
|
||||
plugins: [],
|
||||
themes: [],
|
||||
|
||||
init: function() {},
|
||||
|
||||
get_all: function() {},
|
||||
|
||||
get_installed_plugins: function() {},
|
||||
get_installed_themes: function() {},
|
||||
|
||||
get_plugins: function() {},
|
||||
get_themes: function() {},
|
||||
|
||||
install: function() {},
|
||||
|
||||
search: function() {},
|
||||
|
||||
uninstall: function() {},
|
||||
|
||||
update: function() {},
|
||||
};
|
||||
})( this, jQuery );
|
||||
|
||||
/*
|
||||
init: function() {
|
||||
},
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
// Open marketplace
|
||||
|
@ -122,5 +99,4 @@
|
|||
});
|
||||
},
|
||||
};
|
||||
|
||||
*/
|
||||
})(this, jQuery);
|
||||
|
|
|
@ -45,7 +45,7 @@ if( $_GET['action'] == 'add_user' ) {
|
|||
$user = $_GET['user_id'];
|
||||
} else {
|
||||
|
||||
exit( formatJSEND( "error", "No user id set." ) );
|
||||
exit( formatJSEND( "error", "No user id set." ) );
|
||||
}
|
||||
|
||||
if( isset( $_GET['project_path'] ) && $_GET['project_path'] != '' ) {
|
||||
|
@ -58,7 +58,7 @@ if( $_GET['action'] == 'add_user' ) {
|
|||
|
||||
if( $Project->check_owner( $_GET['project_path'], true ) ) {
|
||||
|
||||
return $Project->add_user( $project, $user, $access );
|
||||
exit( json_encode( $Project->add_user( $project, $user, $access ) ) );
|
||||
} else {
|
||||
|
||||
exit( formatJSEND( "error", "You can not manage this project." ) );
|
||||
|
|
Loading…
Reference in a new issue