mirror of
https://github.com/xevidos/codiad.git
synced 2024-12-22 22:02:15 +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,15 +1,14 @@
|
|||
/*
|
||||
* 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, $){
|
||||
|
||||
let codiad = global.codiad;
|
||||
var codiad = global.codiad;
|
||||
|
||||
$(function() {
|
||||
|
||||
codiad.market.init();
|
||||
});
|
||||
|
||||
|
@ -18,30 +17,8 @@
|
|||
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);
|
||||
|
|
|
@ -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