Skip to content

Commit

Permalink
* Changed JEventType from String to Datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
spockz committed Jan 20, 2012
1 parent af57c63 commit 0875dd0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/static/hjs/jcu.hs
Expand Up @@ -83,11 +83,11 @@ initialize = do -- Rendering

addRuleTree

registerEvents [("#btnCheck" , "click" , toggleClue emptyProof)
,("#btnAddRule", "click" , addRuleEvent)
,("#btnReset" , "click" , resetTree)
,("#txtAddRule", "keypress", noevent)
,("#txtAddRule", "blur" , checkTermSyntax)
registerEvents [("#btnCheck" , Click , toggleClue emptyProof)
,("#btnAddRule", Click , addRuleEvent)
,("#btnReset" , Click , resetTree)
,("#txtAddRule", KeyPress , noevent)
,("#txtAddRule", Blur , checkTermSyntax)
]
where noevent :: EventHandler
noevent x = return False
Expand Down Expand Up @@ -181,8 +181,8 @@ replaceRuleTree p = do
newUL <- buildRuleUl p status

-- Store new proof in the subst funct
registerEvents [("#btnCheck", "click", toggleClue p)
,("#btnSubst", "click", doSubst p)
registerEvents [("#btnCheck", Click , toggleClue p)
,("#btnSubst", Click , doSubst p)
]
-- Draw the new ruleTree
replaceWith oldUL newUL
Expand Down

0 comments on commit 0875dd0

Please sign in to comment.