mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
added debug mode
This commit is contained in:
@@ -9,7 +9,6 @@ var addGroupWindow = null;
|
||||
|
||||
/** Sonia.GroupGrid **/
|
||||
function addGroup(){
|
||||
console.debug( 'add group' );
|
||||
addGroupWindow = new Sonia.group.DetailWindow();
|
||||
addGroupWindow.show();
|
||||
}
|
||||
@@ -17,7 +16,10 @@ function addGroup(){
|
||||
function removeGroup(){
|
||||
if (groupSelModel.hasSelection()){
|
||||
var group = groupSelModel.getSelected().data.name;
|
||||
console.debug( 'remove group ' + group );
|
||||
|
||||
if ( debug ){
|
||||
console.debug( 'remove group ' + group );
|
||||
}
|
||||
|
||||
Ext.MessageBox.show({
|
||||
title: 'Remove Group',
|
||||
@@ -78,7 +80,9 @@ var groupToolbar = new Ext.Toolbar({
|
||||
specialkey: function(field, e){
|
||||
if (e.getKey() == e.ENTER) {
|
||||
var value = this.getValue();
|
||||
console.log( 'Filter: ' + value );
|
||||
if ( debug ){
|
||||
console.log( 'Filter: ' + value );
|
||||
}
|
||||
// TODO filter by member
|
||||
groupStore.filter('name', new RegExp('.*' + value + '.*'));
|
||||
}
|
||||
@@ -276,6 +280,11 @@ Sonia.group.AddForm = new Ext.extend(Ext.FormPanel, {
|
||||
url = restUrl + 'groups.json';
|
||||
}
|
||||
|
||||
if ( debug ){
|
||||
var action = this.update ? 'edit' : 'add';
|
||||
console.debug( action + ' group ' + name );
|
||||
}
|
||||
|
||||
Ext.Ajax.request({
|
||||
url: url,
|
||||
jsonData: group,
|
||||
|
||||
Reference in New Issue
Block a user