Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    19
    Vote Rating
    0
    abeal is on a distinguished road

      0  

    Default [DUPE-865] RadioGroup isDirty bug

    [DUPE-865] RadioGroup isDirty bug


    Ext versions tested:
    • Ext 3.2.1
    Adapter used:
    • No adapters used for test case.
    css used:
    • only default ext-all.css




    Browser versions tested against:
    • FF3.6 (firebug 1.5.3 installed)

    Operating System:

    • OSX 10.6.2

    Description:
    • Radiogroup validation didn't appear to be working appropriately. I'm not sure of the previous behavior, but it looks like at least in this release (3.2.1), the Ext.form.RadioGroup getValue() method returns an Ext.form.Radio object. This, or the isDirty method looks like an error:
      Code:
      //RadioGroup isDirty method:
      isDirty : function() {
         if(this.disabled || !this.rendered) {
             return false;
         }
         return String(this.getValue()) !== String(this.originalValue);
      }
      This seems like it would compare the two strings "[object Object]" and "[object Object]".


      This bug report is primarily intended to provide you the override that I ended up using, so you may decide if it's correct and useful enough to move into the source tree.

    Test Case:
    • None, currently.

    Steps to reproduce the problem:
    • Any usage of the RadioGroup isDirty method


    The result that was expected:
    • As documented.

    The result that occurs instead:
    • Erroneous error reporting.


    Debugging already done:
    • N/A


    Possible fix:
    • The following set of overrides fixed the problem for me. I'm not sure if they would cause violations in other sections of code I'm not aware of.
      Code:
      Ext.form.RadioGroup.override({
          //same as Field method signature, but it fails without this override; not sure why.
          isDirty: function(){
              if(this.disabled || !this.rendered) {
                  return false;
              }
              return String(this.getValue()) !== String(this.originalValue);
          },
          //returning the inputValue of the object, rather than the object itself.
          getValue: function(){
              var out = null;
              this.eachItem(function(item){
                  if(item.checked){
                      out = item;
                  }
                  return (!item.checked);
              });
              return (out === null) ? out : out.inputValue;
          },
          //assigning originalValue to the RadioGroup so isDirty works appropriately.
          setValueForItem : function(val){
              val = String(val).split(',')[0];
              var me = this;
              this.eachItem(function(item){
                  if(item.checked){
                      me.originalValue = item.inputValue;
                  }
                  item.setValue(val == item.inputValue);
              });
          }
      });

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

Thread Participants: 1