mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
fix bugs in none debug mode
This commit is contained in:
@@ -54,7 +54,6 @@ Sonia.repository.hasPermission = function(repository, type){
|
||||
var permissions = repository.permissions;
|
||||
if ( Ext.isDefined(permissions) ){
|
||||
for (var i=0;i<permissions.length; i++ ){
|
||||
console.debug( permissions[i] );
|
||||
if ( permissions[i].name == state.user.name ){
|
||||
result = permissions[i].type == type;
|
||||
break;
|
||||
|
||||
@@ -110,7 +110,9 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, {
|
||||
},
|
||||
|
||||
selectItem: function(item){
|
||||
console.debug( item );
|
||||
if (debug){
|
||||
console.debug( item );
|
||||
}
|
||||
},
|
||||
|
||||
renderUrl: function(url){
|
||||
@@ -196,13 +198,17 @@ Sonia.rest.FormPanel = Ext.extend(Ext.FormPanel,{
|
||||
},
|
||||
|
||||
update: function(item){
|
||||
console.debug( 'update item: ' );
|
||||
console.debug( item );
|
||||
if ( debug ){
|
||||
console.debug( 'update item: ' );
|
||||
console.debug( item );
|
||||
}
|
||||
},
|
||||
|
||||
create: function(item){
|
||||
console.debug( 'create item: ' );
|
||||
console.debug( item );
|
||||
if (debug){
|
||||
console.debug( 'create item: ' );
|
||||
console.debug( item );
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@@ -132,11 +132,6 @@ Ext.onReady(function(){
|
||||
fn: function(){
|
||||
addTabPanel('repositoryConfig', 'repositoryConfig', 'Repository Config');
|
||||
}
|
||||
},{
|
||||
label: 'Server',
|
||||
fn: function(){
|
||||
console.debug( 'Server Config' );
|
||||
}
|
||||
}]
|
||||
},{
|
||||
title: 'Security',
|
||||
|
||||
Reference in New Issue
Block a user