         if deck
           flag = true
           break
-      if flag and @state.title.length > 0
-        saveDisable = false
-      else
-        saveDisable = true
+      saveDisable = true
+      preDisable = true
+      if flag
+        preDisable = false
+        if @state.title.length > 0
+          saveDisable = false
       @setState
         deckChecked: deckChecked
         saveDisable: saveDisable
+        preDisable: preDisable
+        showPre: false
   render: ->
     <div className='tab-container'>
       <Button bsSize='small'

    @props.handleAddData title, deck
    @setState
      saveDisable: true
      deckChecked: [false, false, false, false]
      title: ''
      tags: []

    if nextProps.status isnt @props.status and nextProps.status is 'add'
      @setState
        saveDisable: true
        preDisable: true
        title: ''
        tags: []
        deck: ''
