Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    bug: FormItem.enableIcon / FormItem.disableIcon

    HI,

    version 11.0p - 2017-04-09
    FormItem.enableIcon and FormItem.disableIcon have swapped functionalities.

    Best regards,
    Janusz

    #2
    Here is a test case:

    Code:
    var f = isc.DynamicForm.create({
        width: 200,
        fields : [
            {name: "severityLevel",
             title: "Severity Level",
             wrapTitle: false,
             editorType: "StaticTextItem",
             defaultValue: "Severity 2",
             helpText: "<br><b>Severity 1</b> - Critical problem<br>System is unavailable in production or " +
                       "is corrupting data, and the error severely impacts the user's operations." +
                       "<br><br><b>Severity 2</b> - Major problem<br>An important function of the system " +
                       "is not available in production, and the user's operations are restricted." +
                       "<br><br><b>Severity 3</b> - Minor problem<br>Inability to use a function of the " +
                       "system occurs, but it does not seriously affect the user's operations.",
             icons: [{
                name: "i",
                src: "other/help.png",
                click: "isc.say(item.helpText)"
             }]
            }
        ]
    });
    
    f.getField('severityLevel').enableIcon("i");
    and here is a fix:
    Code:
        enableIcon : function (icon) {
            this.setIconDisabled(icon, [B]true[/B]); // second argument should be [B]false[/B]
        },
        disableIcon : function (icon) {
            this.setIconDisabled(icon, [B]false[/B]); // second argument should be [B]true[/B]
        },

    Comment


      #3
      Thanks for the notification!
      We've fixed this. The fix will be in the next nightly build (April 15) in 10.1, 11.0 and 11.1d builds

      Regards
      Isomorphic Software

      Comment

      Working...
      X