当我点击屏幕1中的蓝色收藏夹按钮时,我想调出收藏夹列表(屏幕2),然后单击绿色收藏夹按钮进入屏幕3.但是,当我点击收藏夹时屏幕1中的按钮,我立即转到屏幕3.如何解决此问题?
|| ----------屏幕1 ----------- || ------------屏幕2 --- ------ || -----------屏幕3 ----------- ||
代码
#Show favorites page (Click blue favorites button)
$.favoritesButton.on Events.Click, ->
#Show list of names
$.otherCellsClickFavPage.states.switch("on")
$.nameClickFavPage.states.switch("on")
$.checkClickFavPage.states.switch("on")
#Hide blue favorites button & show green favorites button 2
$.favoritesButton.states.switchInstant("default")
$.favoritesButton2.states.switch("on")
#Send to all favorites (Click on the green favorites button 2)
$.favoritesButton2.on Events.Click, ->
#Show Send to All Favorites Page
$.favoritesButtonSentToAllFav.states.switch("on")
$.sentMessageSentToAllFav.states.switch("on")
$.cellsSentToAllFav.states.switch("on")
#Hide green favorites button 2 & blue favorites button, so can show pink + white favorites button
$.favoritesButton2.states.switch("default")
$.favoritesButton.states.switch("default")
状态“开”表示将不透明度变为1,状态“默认”表示不透明度为0.绿色收藏夹按钮2位于蓝色收藏夹按钮的顶部。
答案 0 :(得分:0)
解决!我意识到我只需要在绿色的“收藏夹”按钮上移动蓝色“收藏夹”按钮。
#Place Favorites button on top of favorites button 2
$.favoritesButton.placeBefore($.favoritesButton2)
#Show favorites page (Click favorites button)
$.favoritesButton.on Events.Click, ->
#Show list of names
$.otherCellsClickFavPage.states.switch("on")
$.nameClickFavPage.states.switch("on")
$.checkClickFavPage.states.switch("on")
#Hide blue favorites button & show green favorites button 2
$.favoritesButton.states.switchInstant("default")
$.favoritesButton2.states.switch("on")
#Place Favorites button 2 on top of favorites button
$.favoritesButton2.placeBefore($.favoritesButton)
#Send to ALL favorites (Click on the green favorites button 2)
$.favoritesButton2.on Events.Click, ->
#Show Send to All Favorites Page
$.favoritesButtonSentToAllFav.states.switch("on")
$.sentMessageSentToAllFav.states.switch("on")
$.cellsSentToAllFav.states.switch("on")
#Hide green favorites button 2 & blue favorites button, so can show pink + white favorites button
$.favoritesButton2.states.switch("off")
$.favoritesButton.states.switch("off")
状态“关闭”表示将不透明度变为0。