                 commit: (element) ->
                   if this.getDialog().getValueOf('item', 'source') == 'URL' then value = this.getValue() else value = ''
 
-                  element.children('.menu-item').children("input[name$='[url]']").val(value)
-                  element.children('a').attr('href', value || '#')
+                  if this.getDialog().getValueOf('item', 'source') != 'Dropdown'
+                    element.children('.menu-item').children("input[name$='[url]']").val(value)
+                    element.children('a').attr('href', value || '#')
                 validate: ->
                   if this.getDialog().getValueOf('item', 'source') == 'URL' && (this.getValue() || '').length == 0
                     CKEDITOR.dialog.validate.notEmpty('please enter a URL').apply(this)


                    this.getDialog().getContentElement('item', 'menuable_id').getElement().hide()
                    this.getDialog().getContentElement('item', 'special').getElement().hide()

                  if this.getValue() == 'Divider'
                    this.getDialog().getContentElement('item', 'url').getElement().hide()
                    this.getDialog().getContentElement('item', 'title').getElement().hide()
                    this.getDialog().getContentElement('item', 'menuable_id').getElement().hide()
                    this.getDialog().getContentElement('item', 'special').getElement().hide()

                  if this.getValue() == 'Route'
                    this.getDialog().getContentElement('item', 'title').getElement().show()

                id: 'source',
                type: 'radio',
                label: 'Link Type',
                items: [['Page', 'Page'], ['URL', 'URL'], ['Route', 'Route'], ['Divider', 'Divider'], ['Dropdown', 'Dropdown']]
                setup: (element) ->
                  menuable_id = element.children('.menu-item').children("input[name$='[menuable_id]']").val() || ''
                  special = element.children('.menu-item').children("input[name$='[special]']").val() || ''
                  url = element.children('.menu-item').children("input[name$='[url]']").val() || ''

                  if this.getDialog().effective_menu_item.hasClass('dropdown')
                    this.setValue('Dropdown')
                  else if menuable_id.length > 0
                    this.setValue('Page')
                  else if special == 'divider'
                    this.setValue('Divider')
