Commit 39b5e40bd73cbdabd62d42f2e2f7a676cc7289b1
Committed by
Paulo Meireles
1 parent
398774a9
Exists in
master
and in
29 other branches
[mezuro] now comments can be hindden and unhidden
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
plugins/mezuro/public/javascripts/project_content.js
@@ -10,8 +10,8 @@ function showProjectContent() { | @@ -10,8 +10,8 @@ function showProjectContent() { | ||
10 | } | 10 | } |
11 | 11 | ||
12 | function toogle(element){ | 12 | function toogle(element){ |
13 | - alert(element); | ||
14 | - jQuery(element).hide(); | 13 | + jQuery(element).toggle(); |
14 | + return false; | ||
15 | } | 15 | } |
16 | 16 | ||
17 | function reloadModule(){ | 17 | function reloadModule(){ |
@@ -50,12 +50,14 @@ function showProjectResult(content) { | @@ -50,12 +50,14 @@ function showProjectResult(content) { | ||
50 | function showProjectTree(content){ | 50 | function showProjectTree(content){ |
51 | processingTree = false; | 51 | processingTree = false; |
52 | jQuery('#project-tree').html(content); | 52 | jQuery('#project-tree').html(content); |
53 | + return false; | ||
53 | } | 54 | } |
54 | 55 | ||
55 | function showModuleResult(content){ | 56 | function showModuleResult(content){ |
56 | if (processingTree != true){ | 57 | if (processingTree != true){ |
57 | jQuery('#module-result').html(content); | 58 | jQuery('#module-result').html(content); |
58 | } | 59 | } |
60 | + return false; | ||
59 | } | 61 | } |
60 | 62 | ||
61 | function callAction(action, params, callback){ | 63 | function callAction(action, params, callback){ |