From 189c57091c36158de527edf8f94b9e9dda449c9d Mon Sep 17 00:00:00 2001 From: BorisMoore Date: Mon, 9 Aug 2010 11:42:08 -0700 Subject: [PATCH] API name change: Changed .templates() to .template() --- README.md | 2 +- demos/movies/PagesCore/movies.html | 2 +- demos/movies/PagesTmplPlus/movies1.html | 2 +- demos/movies/PagesTmplPlus/movies2.html | 2 +- demos/movies/PagesTmplPlus/movies3.html | 2 +- .../Interactive/resources/folder.png | Bin 483 -> 472 bytes .../Interactive/resources/treeView.css | 29 ++++++++------ .../Interactive/tabsWrapNested.html | 4 +- demos/samplesCore/Interactive/treeView.html | 4 +- demos/samplesCore/basic.html | 4 +- demos/samplesCore/composition.html | 4 +- demos/samplesTmplPlus/basic.html | 2 +- demos/samplesTmplPlus/composition.html | 2 +- jquery.tmpl.js | 36 +++++++++--------- jquery.tmplPlus.js | 5 +-- 15 files changed, 51 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 1ca9351..4e65a63 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ ____________________________________________________________________ ____________________________________________________________________ // Store a string as a compiled template for later use - $.templates( "myTmpl", "${firstName}" ); + $.template( "myTmpl", "${firstName}" ); // Render stored template and insert after target. $.tmpl( "myTmpl", dataObject ) diff --git a/demos/movies/PagesCore/movies.html b/demos/movies/PagesCore/movies.html index a0dd239..50e80dc 100644 --- a/demos/movies/PagesCore/movies.html +++ b/demos/movies/PagesCore/movies.html @@ -308,7 +308,7 @@

Netflix: Book a Movie...

return; } var item = bookingTmplItems[booking.movie.Id], - tmpl = $( edit ? "#bookingEditTmpl" : "#bookingTitleTmpl" ).templates(); + tmpl = $( edit ? "#bookingEditTmpl" : "#bookingTitleTmpl" ).template(); if ( item.tmpl !== tmpl) { item.tmpl = tmpl; item.update(); diff --git a/demos/movies/PagesTmplPlus/movies1.html b/demos/movies/PagesTmplPlus/movies1.html index 8cb1091..7c562d4 100644 --- a/demos/movies/PagesTmplPlus/movies1.html +++ b/demos/movies/PagesTmplPlus/movies1.html @@ -309,7 +309,7 @@

Netflix: Book a Movie...

return; } var item = bookingItem( booking ), - tmpl = $( edit ? "#bookingEditTmpl" : "#bookingTitleTmpl" ).templates(); + tmpl = $( edit ? "#bookingEditTmpl" : "#bookingTitleTmpl" ).template(); if ( item.tmpl !== tmpl) { item.tmpl = tmpl; item.update(); diff --git a/demos/movies/PagesTmplPlus/movies2.html b/demos/movies/PagesTmplPlus/movies2.html index 0727425..17e35b3 100644 --- a/demos/movies/PagesTmplPlus/movies2.html +++ b/demos/movies/PagesTmplPlus/movies2.html @@ -258,7 +258,7 @@

Netflix: Book a Movie...

var item = bookingItem( booking ), rendered = edit ? onBookingEditRendered : onBookingRendered; if ( item.rendered !== rendered) { - item.tmpl = $( edit ? "#bookingEditTmpl" : "#bookingTitleTmpl" ).templates(); + item.tmpl = $( edit ? "#bookingEditTmpl" : "#bookingTitleTmpl" ).template(); item.rendered = rendered; item.update(); } diff --git a/demos/movies/PagesTmplPlus/movies3.html b/demos/movies/PagesTmplPlus/movies3.html index fa5fd1f..09ce186 100644 --- a/demos/movies/PagesTmplPlus/movies3.html +++ b/demos/movies/PagesTmplPlus/movies3.html @@ -247,7 +247,7 @@

Netflix: Book a Movie...

var item = bookingItem( booking ), rendered = edit ? onBookingEditRendered : onBookingRendered; if ( item.rendered !== rendered) { - item.tmpl = $( edit ? "#bookingEditTmpl" : "#bookingTitleTmpl" ).templates(); + item.tmpl = $( edit ? "#bookingEditTmpl" : "#bookingTitleTmpl" ).template(); item.rendered = rendered; item.update(); } diff --git a/demos/samplesCore/Interactive/resources/folder.png b/demos/samplesCore/Interactive/resources/folder.png index 18727f9f58edc13879aa6258d948053109cb8bfc..577638d6667f892e9dd53bcc0630ac2f2ce63cce 100644 GIT binary patch delta 408 zcmV;J0cZZ>1K0y0iBL{Q4GJ0x0000DNk~Le0000F0000E2nGNE0Pu=N?~x%(e*g(^ zNLh0L01m_e01m_fl`9S#0003&Nkl^j5=iX!2}T6?@ZGrJd_9v|}O*Ho^~Po!SQ zM`yCPf3SkBU&77xX&ygMCC68Le^dNKdwKg%*+vj1<5B)Y&-!1moR)yS^eKuJUtS!p z)w7z}jIo?ODsfS_c2AWuDZ zk_6ig?k?Q&K*eFju9^#A1EX7KModa&w`{crGpV#t6j`W?-mUM}mCcSZZj`|k+l#?? z;gW1%{v6pcVPGy@)ZChXYml+Wifpifszg&(*)fYaB%5RhAxxPmzyVvUi9JJ&I1B9~ zf;^1wZ?nz;8bL(FBx8xVQ*F}<8EfO~mIt5qKi3bFkQbfP<&V4o0000<5x delta 419 zcmV;U0bKsr1LFfBiBL{Q4GJ0x0000DNk~Le0000M0000I2m$~A0MJLddXXVZe*s}h zL_t(IPpy+LY=b})hdWn^MDE;h!>w|4!womwf?7}ws;MO?f+8q_0|%~kMHV+4b0ANi zJb8N;{M|Y{cDz_DU3K*f`t$z51C#j4>w6_K2d38hK?kHCP5BGP)uQ?w}d6h3FTVeGm zjVnB^NX|T5VXo0kC5Mg=QRxf8MwIT+4TWveIwFOMGo?!9DwWC@okDbUQDQ?l&j;Sy zh)5L174TrJtzmxX`kSi0tk+Mn{D9!JC@g>0xMK1 N002ovPDHLkV1in*x+wqv diff --git a/demos/samplesCore/Interactive/resources/treeView.css b/demos/samplesCore/Interactive/resources/treeView.css index c7c349f..7d329b6 100644 --- a/demos/samplesCore/Interactive/resources/treeView.css +++ b/demos/samplesCore/Interactive/resources/treeView.css @@ -7,34 +7,40 @@ .treeView li { list-style-type: none; - padding: 1px; - margin: 0; + padding: 2px; } .treeView li li { - margin-left: 22px; + margin-left: 18px; } .treeView img { vertical-align: middle; border: 0px; + margin-right:7px; } -.folderItem +img.folder { - cursor: pointer; - margin: 17px; - color:Blue; - text-decoration: underline; - font-style:italic; + width:15px; + height:14px; +} + +img.expand +{ + width:8px; + width:9px; } -.treeView .folderItem +.treeView li.folderItem { cursor: pointer; - padding: 0px 0 3px 16px; + color:Blue; + text-decoration: underline; + font-style:italic; + margin-bottom: 4px; } .content_true @@ -42,4 +48,3 @@ cursor: pointer; font-weight: bold; } - diff --git a/demos/samplesCore/Interactive/tabsWrapNested.html b/demos/samplesCore/Interactive/tabsWrapNested.html index 07998f6..316b93e 100644 --- a/demos/samplesCore/Interactive/tabsWrapNested.html +++ b/demos/samplesCore/Interactive/tabsWrapNested.html @@ -61,9 +61,9 @@

POST

{{/each}} - +
- {{html tabContent}} + {{html tabContent()}}
diff --git a/demos/samplesCore/Interactive/treeView.html b/demos/samplesCore/Interactive/treeView.html index b1b1b1b..36e9da6 100644 --- a/demos/samplesCore/Interactive/treeView.html +++ b/demos/samplesCore/Interactive/treeView.html @@ -18,8 +18,8 @@

Tree View