From version 16.1
edited by Patrick Masson
on 2018.04.13 at 06:43:06 PDT
To version 17.1
edited by Patrick Masson
on 2018.04.13 at 06:47:29 PDT
Change comment: Rollback to version 3.1

Summary

Details

Page properties
Content
... ... @@ -3,9 +3,7 @@
3 3  with the same kind of CSS rules. However, it is now based on jQuery, and need requireJS, so it requires
4 4  XWiki 5.x or more.
5 5  
6 -{{info}}
7 -Using ##id="..."## is still supported and provide the same HTML result but it is no more needed to achieve a working animation.
8 -{{/info}}
6 +{{info}}Using ##id="..."## is still supported and provide the same HTML result but it is no more needed to achieve a working animation.{{/info}}
9 9  
10 10  == Without effect ==
11 11  
... ... @@ -27,7 +27,7 @@
27 27  
28 28  == With a fade in effect ==
29 29  
30 -{{showhide showmessage="Show" hidemessage="Hide" effect="fade" effectduration="2" style="background-color: #ccc"}}
28 +{{showhide showmessage="Show" hidemessage="Hide" effect="fade" effectduration="2" style="background-color: #ccc"}}
31 31  Here is some hidden content that can become visible
32 32  Here is some hidden content that can become visible
33 33  Here is some hidden content that can become visible
... ... @@ -43,17 +43,11 @@
43 43  {{/showhide}}
44 44  {{/code}}
45 45  
46 -{{info}}
47 -Using ##effect="appear"## is still supported and provide the same behavior
48 -{{/info}}
44 +{{info}}Using ##effect="appear"## is still supported and provide the same behavior{{/info}}
49 49  
50 -== ==
51 -
52 -{{poll document="It"/}}
53 -
54 54  == With a sliding down effect ==
55 55  
56 -{{showhide showmessage="Show" hidemessage="Hide" effect="slide" effectduration="0.5" style="background-color: #ccc"}}
48 +{{showhide showmessage="Show" hidemessage="Hide" effect="slide" effectduration="0.5" style="background-color: #ccc"}}
57 57  Here is some hidden content that can become visible
58 58  Here is some hidden content that can become visible
59 59  Here is some hidden content that can become visible
... ... @@ -69,6 +69,5 @@
69 69  {{/showhide}}
70 70  {{/code}}
71 71  
72 -{{info}}
73 -This effect is equivalent to ##effect="blind"## in the 1.0 macro, so both ##slide## and ##blind## effect are now using the exact same animation.
74 -{{/info}}
64 +{{info}}This effect is equivalent to ##effect="blind"## in the 1.0 macro, so both ##slide## and ##blind## effect are now using the exact same animation.{{/info}}
65 +
XWiki.JavaScriptExtension[0]
Code
... ... @@ -7,7 +7,7 @@
7 7   if($.inArray(effect,['toggle','fadeToggle','slideToggle']) == -1) effect = 'toggle';
8 8   data.showHideState = !(('showHideState' in data) ? data.showHideState : content.is(':visible'));
9 9   button.html(button.attr(data.showHideState ? 'data-hide-message' : 'data-show-message'));
10 - content.stop()[effect](parseInt(button.attr('data-show-duration'~)~)~);
10 + content.stop()[effect](parseInt(button.attr('data-show-duration')));
11 11   return false;
12 12   }
13 13   $(document).ready(function() {

Submit feedback regarding this wiki to webmaster@opensource.org

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 7.4.2 - Documentation