Permalink
Browse files

Item13206: docu updates; fixing examples

  • Loading branch information...
1 parent 36a9ba4 commit 5001db04d2774b73535e03c6f3c541dc29473f42 MichaelDaum committed Sep 6, 2016
@@ -1,4 +1,4 @@
-%META:TOPICINFO{author="ProjectContributor" date="1456220586" format="1.1" version="1"}%
+%META:TOPICINFO{author="ProjectContributor" comment="" date="1473163788" format="1.1" version="1"}%
%META:TOPICPARENT{name="JQueryPlugin"}%
---+ %TOPIC%
%JQPLUGINS{"fluidfont"
@@ -45,9 +45,8 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam facilisis neque i
| data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data | data |
</div>
-
%IF{"$'fluidfont'='on'"
- then="$percntADDTOZONE{\"script\" topic=\"%WEB%.%TOPIC%\" section=\"fluidfont\"}$percnt
+ then="$percntADDTOZONE{\"script\" requires=\"JQUERYPLUGIN::FLUIDFONT\" topic=\"%WEB%.%TOPIC%\" section=\"fluidfont\"}$percnt
Fluid font is activated. Try to resize the browser window."
else="<a href='%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?fluidfont=on'>Click here</a>
to activate fluid font for all of this page."
@@ -1,4 +1,4 @@
-%META:TOPICINFO{author="ProjectContributor" comment="" date="1460294027" format="1.1" version="1"}%
+%META:TOPICINFO{author="ProjectContributor" comment="" date="1473163788" format="1.1" version="1"}%
---+!! %TOPIC%
%FORMFIELD{"Description"}%
@@ -125,6 +125,12 @@ required for Foswiki 1.1 or later.
---++ Change History
%TABLE{columnwidths="7em" tablewidth="100%"}%
+| 06 Sep 2016: | (7.10) - Item14121: reimplement jquery.stars using SVGs now; \
+ - Item14120: remove outdate compression tools; \
+ - Item13206: upgrade to jquery-ui; added jQuery-1.12.4 / jQuery-2.2.4; \
+ - Item14122: upgrade to fontawesome 4.6.3; \
+ - Item14123: fixed =foswiki.getPubUrlPath()= using an uninitialized parameter; \
+ - Item14124: make skin of a jquery.loader backend configurable |
| 10 Apr 2016: | (7.04) - Item14042: it's jquery-1.12.3 not jquey-1.12.3 |
| 06 Apr 2016: | (7.03) - Item14042: added jQuery-1.12.3 / jQuery-2.2.3 |
| 04 Apr 2016: | (7.02) - Item14024: fix issue with JSON::XS 3.02 in some environments |
@@ -358,7 +364,7 @@ required for Foswiki 1.1 or later.
%META:FORM{name="PackageForm"}%
%META:FIELD{name="Author" title="Author" value="ProjectContributor"}%
-%META:FIELD{name="Copyright" title="Copyright" value="2007-2016 Foswiki Contributors http://foswiki.org"}%
+%META:FIELD{name="Copyright" title="Copyright" value="2007-2016 Foswiki Contributors https://foswiki.org"}%
%META:FIELD{name="Description" title="Description" value="%25$SHORTDESCRIPTION%25"}%
%META:FIELD{name="Home" title="Home" value="Foswiki:Extensions/%25$ROOTMODULE%25"}%
%META:FIELD{name="License" title="License" value="GPL"}%
@@ -1,4 +1,4 @@
-%META:TOPICINFO{author="ProjectContributor" date="1456220586" format="1.1" version="1"}%
+%META:TOPICINFO{author="ProjectContributor" comment="" date="1473163832" format="1.1" version="1"}%
%META:TOPICPARENT{name="JQueryPlugin"}%
---+!! %TOPIC%
@@ -74,7 +74,7 @@ See how this works out:
</p>
</script>
-<script>
+%ADDTOZONE{"script" requires="JQUERYPLUGIN::RENDER" id="%TOPIC%::PERSONS" text="<script type='text/javascript'>
var arrayOfPersons = [
{
firstName:'David',
@@ -99,9 +99,9 @@ var arrayOfPersons = [
];
jQuery(function($) {
- $("#container1").html($("#personTemplate1").render(arrayOfPersons));
+ $('#container1').html($('#personTemplate1').render(arrayOfPersons));
});
-</script>
+</script>"}%
Whenever you'd like to use a different layout for the same data just use a different template. No big deal.
Imagine doing the same using DOM plumbing...
@@ -118,11 +118,11 @@ Imagine doing the same using DOM plumbing...
<li>{{:firstName}} {{:lastName}}</li>
</script>
-<script>
+%ADDTOZONE{"script" requires="JQUERYPLUGIN::RENDER" id="%TOPIC%::INIT" text="<script type='text/javascript'>
jQuery(function($) {
- $("#container2").html($("#personTemplate2").render(arrayOfPersons));
+ $('#container2').html($('#personTemplate2').render(arrayOfPersons));
});
-</script>
+</script>"}%
---++ Further reading
@@ -160,4 +160,4 @@ and return the rendered template.
| ={{<nop>!-- ... --}}= | comments to templates, or commenting out sections of a template | ={{!-- this is a comment --}}= |
-%META:FILEATTACHMENT{name="logo-jsr.png" attr="h" comment="" date="1456220586" size="1241" user="ProjectContributor" version="1"}%
+%META:FILEATTACHMENT{name="logo-jsr.png" attr="h" comment="" date="1473163859" size="1241" user="ProjectContributor" version="1"}%
@@ -1,4 +1,4 @@
-%META:TOPICINFO{author="ProjectContributor" date="1456220586" format="1.1" version="1"}%
+%META:TOPICINFO{author="ProjectContributor" comment="" date="1473163788" format="1.1" version="1"}%
%META:TOPICPARENT{name="Macros"}%
---+ POPUPWINDOW -- opens a topic or url in a new window
---++ Parameters
@@ -22,7 +22,7 @@
| =createnew= | Create a new window for each popup? | ="1"= |
---++ Examples
* Example with topic link: <pre class="tml">%<nop>POPUPWINDOW{"%BASETOPIC%" label="Open this topic in a new window"}%</pre> Generates: %POPUPWINDOW{"%BASETOPIC%" label="Open this topic in a new window"}%
- * Example with URL: <pre class="tml">%<nop>POPUPWINDOW{url="http://foswiki.org"}%</pre> Generates: %POPUPWINDOW{url="http://foswiki.org"}%
+ * Example with URL: <pre class="tml">%<nop>POPUPWINDOW{url="https://foswiki.org"}%</pre> Generates: %POPUPWINDOW{url="https://foswiki.org"}%
* Enable =POPUPWINDOW= by writing =%<nop>JQREQUIRE{"popupwindow"}%= on the page
%STOPINCLUDE%
<!--%JQREQUIRE{"chili"}%-->

0 comments on commit 5001db0

Please sign in to comment.