~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/dialog/fck_radiobutton.html

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        if ( oActiveEl && oActiveEl.tagName.toUpperCase() == 'INPUT' && oActiveEl.type == 'radio' )
41
41
        {
42
42
                GetE('txtName').value           = oActiveEl.name ;
43
 
                GetE('txtValue').value          = oActiveEl.value ;
 
43
                GetE('txtValue').value          = oEditor.FCKBrowserInfo.IsIE ? oActiveEl.value : GetAttribute( oActiveEl, 'value' ) ;
44
44
                GetE('txtSelected').checked     = oActiveEl.checked ;
45
45
        }
46
46
        else
58
58
                oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
59
59
        }
60
60
 
61
 
        oActiveEl.name = GetE('txtName').value ;
62
 
        SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
 
61
        if ( GetE('txtName').value.length > 0 )
 
62
                oActiveEl.name = GetE('txtName').value ;
 
63
                
 
64
        if ( oEditor.FCKBrowserInfo.IsIE )
 
65
                oActiveEl.value = GetE('txtValue').value ;
 
66
        else
 
67
                SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ;
63
68
 
64
 
        if ( GetE('txtSelected').checked )
65
 
        {
66
 
                SetAttribute( oActiveEl, 'checked', 'checked' ) ;
67
 
                oActiveEl.checked = GetE('txtSelected').checked ;
68
 
        }
 
69
        var bIsChecked = GetE('txtSelected').checked ;
 
70
        SetAttribute( oActiveEl, 'checked', bIsChecked ? 'checked' : null ) ;   // For Firefox
 
71
        oActiveEl.checked = bIsChecked ;
69
72
 
70
73
        return true ;
71
74
}