1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    21
    Vote Rating
    0
    waken is on a distinguished road

      0  

    Default Unanswered: Make form readOnly/editable - except fields with property readOnly:true

    Unanswered: Make form readOnly/editable - except fields with property readOnly:true


    How make form readOnly/editable - except fields with property readOnly:true
    ie. user "Edit" click makes some fieds on form editable, "Cancel" makes all fields readOnly
    additional property to Ext.Field and function to Form.Basic?

  2. #2
    Sencha User
    Join Date
    Jan 2010
    Posts
    21
    Vote Rating
    0
    waken is on a distinguished road

      0  

    Default


    Nobody?

    Solution, any comments?

    PHP Code:
    Ext.override(Ext.form.field.Base,{
        
    readOnlyMyfalse
    }); 

    HelperSetReadOnly = function(fbReadOnly){
        
        if (
    instanceof Ext.form.FieldSet) {            
            
    f.items.each(function (ff) {
                
    HelperSetReadOnly(ff);    
            });
        }
        
        if ((
    f.ReadOnlyMy == null) || (f.ReadOnlyMy == false))
            if (
    f.isFormField) {
                if (
    bReadOnly === true) {
                    
    f.setReadOnly(true);
                } else {
                    
    f.setReadOnly(false);
                }              
           }
    }

    Ext.override(Ext.form.Panel,{
        
    setReadOnly: function(bReadOnly) {
            
    this.items.each(function(f){
                if (
    instanceof Ext.form.FieldSet) {                
                    
    f.items.each(function (ff) {
                        
    HelperSetReadOnly(ffbReadOnly);
                    });
                }else{
                    
    HelperSetReadOnly(f,bReadOnly);
                }
            });
        }
    }); 

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi