     jGroup   = @getData()
     logo     = jGroup.customize?.logo
 
-    if logo
+    if logo is 12
       avatarEl.style.backgroundImage = "url(#{logo})"
     else
       pattern = geoPattern.generate jGroup.title, generator: 'plusSigns'

        tagName    : 'span'
        partial    : 'Please add channel names separated by commas.'

    addButton form,
      title    : 'Save Changes'
      callback : @bound 'update'


  createAvatarUploadForm: ->

    @addSubView section = createSection
      name : 'avatar-upload'

    section.addSubView @avatar = new KDCustomHTMLView

        kd.warn err

      new KDNotificationView title: message, duration: 5000


  createSection: (options = {}) ->

    { name, title, description } = options

    section = new KDCustomHTMLView
      tagName  : 'section'
      cssClass : kd.utils.curry 'AppModal-section', name

    section.addSubView desc = new KDCustomHTMLView
      tagName  : 'p'
      cssClass : 'AppModal-sectionDescription'
      partial  : description

    return section


  addInput: (form, options) ->

    { name, label, description, itemClass, nextElement } = options

    itemClass  or= KDInputView
    form.inputs ?= {}

    form.addSubView field = new KDCustomHTMLView tagName : 'fieldset'

    if label
      field.addSubView labelView = new KDCustomHTMLView
        tagName : 'label'
        for     : name
        partial : label
      options.label = labelView

    field.addSubView form.inputs[name] = input = new itemClass options
    field.addSubView new KDCustomHTMLView tagName : 'p', partial : description  if description

    field.addSubView nextElement  if nextElement and nextElement instanceof KDView

    return input
