Skip to content

Commit

Permalink
handle clearing lock code
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh committed Feb 4, 2014
1 parent ceae66d commit 13cc26e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion episode-17-draft/app/controllers/more_actions_controller.rb
Expand Up @@ -66,7 +66,7 @@ def tableView(tableView, didSelectRowAtIndexPath: indexPath)

case text
when CLEAR_LOCK_CODE_TEXT
App.alert 'clear lock code functionality is coming up'
handle_clearing_lock_code indexPath

when SET_LOCK_CODE_TEXT
self.navigationController.pushViewController(ManageLockCodeController.alloc.initAndSetCode, animated: true)
Expand All @@ -81,6 +81,12 @@ def tableView(tableView, didSelectRowAtIndexPath: indexPath)

private

def handle_clearing_lock_code indexPath
LockCode.set nil
App.alert 'Lock code has been cleared'
view.reloadData
end

def display_non_version_section indexPath, cell
case indexPath.row
when LOCK_CODE_ROW_NUMBER
Expand Down

0 comments on commit 13cc26e

Please sign in to comment.