mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-30 08:41:24 +00:00
2003-03-04 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb/GSWInput.m: o logs * GSWeb/GSWCheckBox.m: o logs o fix for disabled check box * GSWAdaptors/Apache/mod_gsweb.c o typo fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@16128 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6104dbcda5
commit
3cddc8b06e
4 changed files with 52 additions and 34 deletions
|
@ -136,44 +136,47 @@ Bindings
|
|||
//OK
|
||||
GSWComponent* component=nil;
|
||||
BOOL disabledInContext=NO;
|
||||
BOOL isChecked=NO;
|
||||
LOGObjectFnStartC("GSWCheckBox");
|
||||
component=[context component];
|
||||
disabledInContext=[self disabledInContext:context];
|
||||
if (!disabledInContext)
|
||||
NSDebugMLLog(@"gswdync",@"disabledInContext=%d",disabledInContext);
|
||||
|
||||
[self appendValueToResponse:response
|
||||
inContext:context];
|
||||
[self appendNameToResponse:response
|
||||
inContext:context];
|
||||
|
||||
NSDebugMLLog(@"gswdync",@"_value=%@",_value);
|
||||
NSDebugMLLog(@"gswdync",@"_selection=%@",_selection);
|
||||
NSDebugMLLog(@"gswdync",@"_checked=%@",_checked);
|
||||
if (_value && _selection)
|
||||
{
|
||||
BOOL isChecked=NO;
|
||||
[self appendValueToResponse:response
|
||||
inContext:context];
|
||||
[self appendNameToResponse:response
|
||||
inContext:context];
|
||||
|
||||
NSDebugMLLog(@"gswdync",@"_value=%@",_value);
|
||||
NSDebugMLLog(@"gswdync",@"_selection=%@",_selection);
|
||||
NSDebugMLLog(@"gswdync",@"_checked=%@",_checked);
|
||||
if (_value && _selection)
|
||||
id valueValue=[_value valueInComponent:component];
|
||||
NSDebugMLLog(@"gswdync",@"valueValue=%@",valueValue);
|
||||
if (valueValue)
|
||||
{
|
||||
id valueValue=[_value valueInComponent:component];
|
||||
NSDebugMLLog(@"gswdync",@"valueValue=%@",valueValue);
|
||||
if (valueValue)
|
||||
id selectionValue=[_selection valueInComponent:component];
|
||||
NSDebugMLLog(@"gswdync",@"selectionValue=%@",selectionValue);
|
||||
if (selectionValue)
|
||||
{
|
||||
id selectionValue=[_selection valueInComponent:component];
|
||||
NSDebugMLLog(@"gswdync",@"selectionValue=%@",selectionValue);
|
||||
if (selectionValue)
|
||||
{
|
||||
NSString* valueValueString=[NSString stringWithFormat:@"%@",valueValue];
|
||||
NSString* selectionValueString=[NSString stringWithFormat:@"%@",selectionValue];
|
||||
isChecked=SBIsValueEqual(selectionValueString,valueValueString);
|
||||
};
|
||||
NSString* valueValueString=[NSString stringWithFormat:@"%@",valueValue];
|
||||
NSString* selectionValueString=[NSString stringWithFormat:@"%@",selectionValue];
|
||||
isChecked=SBIsValueEqual(selectionValueString,valueValueString);
|
||||
};
|
||||
}
|
||||
else if (_checked)
|
||||
isChecked=[self evaluateCondition:_checked
|
||||
inContext:context];
|
||||
NSDebugMLLog(@"gswdync",@"isChecked=%s",(isChecked ? "YES" : "NO"));
|
||||
};
|
||||
}
|
||||
else if (_checked)
|
||||
isChecked=[self evaluateCondition:_checked
|
||||
inContext:context];
|
||||
NSDebugMLLog(@"gswdync",@"isChecked=%s",(isChecked ? "YES" : "NO"));
|
||||
|
||||
if (isChecked)
|
||||
[response _appendContentAsciiString:@" checked"];
|
||||
|
||||
if (disabledInContext)
|
||||
[response appendContentString:@" disabled"];
|
||||
|
||||
if (isChecked)
|
||||
[response _appendContentAsciiString:@" checked"];
|
||||
};
|
||||
LOGObjectFnStopC("GSWCheckBox");
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue