         evt.nativeEvent.stopImmediatePropagation() # what ?!
         return false
 
+    handle_prepend_setup_code: (value) ->
+        @props.actions.set(prepend_setup_code:value)
+
     render: ->
         <Modal show      = {@props.show}
                onKeyUp   = {@handle_dialog_keyup}

            @load_data()
        else if @get('lang') != lang
            @select_lang(lang)
        @set(show: true, initialized:true)

    init_data: (data) ->
        @set(data: data)

                >
                    Insert Example
                </Button>
                {
                    if @props.setup_code?.length > 0
                        <Checkbox
                            className = {'pull-right'}
                            style     = {margin: '10px', display: 'inline'}
                            checked   = {@props.prepend_setup_code}
                            onChange  = {(e)=>@handle_prepend_setup_code(e.target.checked)}
                        >
                            Setup code
                        </Checkbox>
                }
            </Modal.Footer>
        </Modal>

