       
       
     table.addEventListener('click',(e) ->
-
       curretRowIndex = e.index
-
       resetBackGroundColor(table.data[0].rows)
-      
       # クリックされたrowの色を'#59BB0C'に設定
       table.data[0].rows[curretRowIndex].backgroundColor = '#59BB0C'
-      
-      # サブメニューで選択されたタグにマッチする
-      # 投稿を非表示にする
-      
 
       items = JSON.parse(Ti.App.Properties.getString('storedStocks'))
       result = []
+
       allLabelIndexPosition = 3
       if curretRowIndex is allLabelIndexPosition
         result.push(t.createRow(json)) for json in items
       else
-        result.push(matchTag(items,e.rowData.className))
+        tagName = e.rowData.className
+        result.push(matchTag(items,tagName))
+      
+
             
       # row.classの値が allLabel の場合にのみ過去の投稿を
       # 読み込むためのラベルを配置する

        menuRow.add textLabel
        menuRow.className = json.url_name
        
        configRows.push menuRow
      
      table.data = configRows
      
    )
    return table

      configAccountLabel.top = 8
      configAccountLabel.left = 35

      configRow = Ti.UI.createTableViewRow
        width: 158
        height:40
        left:1
        backgroundColor:backgroundColorSub
        
      configRow.addEventListener('click',(e) ->

        slideEvent()
        controller.moveToConfigWindow()
      )
    
      
      configRow.add configBtn
      configRow.add configAccountLabel
      return configRow

    makeStockRow = ->
      stockBtn = Ti.UI.createImageView
        image:"ui/image/light_list.png"
        left:5
        top:5
        backgroundColor:"transparent"
        
      stockLabel = Ti.UI.createLabel(fontThemeWhite)
        
      stockLabel.text = "ストック投稿を見る"
      stockLabel.top = 8
      stockLabel.left = 35

      stockRow = Ti.UI.createTableViewRow
        width: 158
        height:40
        left:1
        backgroundColor:backgroundColorSub

      stockRow.add stockBtn
      stockRow.add stockLabel

      return stockRow

    makeTagRow = ->
      tagRow = Ti.UI.createTableViewRow
        width: 158
        height:40
        left:1
        backgroundColor:backgroundColorSub
        
      tagLabel = Ti.UI.createLabel(fontThemeWhite)
        
      tagLabel.text = "タグを見る"
      tagLabel.top = 8
      tagLabel.left = 35

      tagBtn = Ti.UI.createImageView
        image:"ui/image/light_tag.png"
        left:5
        top:10
        backgroundColor:"transparent"
        
      tagRow.add tagLabel        
      tagRow.add tagBtn
      return tagRow

            
    matchTag = (items,tagName) ->
      for i in [0..items.length-1]
