[Jifty-commit] jifty branch, master, updated. jifty-1.01209-8-ge623c0e

Jifty commits jifty-commit at lists.jifty.org
Wed Jan 19 18:25:51 EST 2011


The branch, master has been updated
       via  e623c0e32ff779aaa58bf80990013ee992987cb0 (commit)
       via  8752768ee2597f961b1813f306172b91f475146e (commit)
      from  05ee9798db3f1b15dbbe88568a53631c77f8b5ee (commit)

Summary of changes:
 share/web/static/js/jifty.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 8752768ee2597f961b1813f306172b91f475146e
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Jan 19 18:22:51 2011 -0500

    Fix function name in doc

diff --git a/share/web/static/js/jifty.js b/share/web/static/js/jifty.js
index b4e5db5..21a6512 100644
--- a/share/web/static/js/jifty.js
+++ b/share/web/static/js/jifty.js
@@ -1103,7 +1103,7 @@ var apply_fragment_updates = function(fragment, f) {
 }
 
 /* Region update helper 
- *  Jifty.replaceRegion( 'region-name' , '/path' , { id: 123123 , msg: 'blah'  } );
+ *  Jifty.updateRegion( 'region-name' , '/path' , { id: 123123 , msg: 'blah'  } );
  */
 Jifty.updateRegion = function( regionName , path , args , mode ) {
     Jifty.update({

commit e623c0e32ff779aaa58bf80990013ee992987cb0
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Jan 19 18:24:12 2011 -0500

    __page is only relevant for SPA, which isn't the default configuration

diff --git a/share/web/static/js/jifty.js b/share/web/static/js/jifty.js
index 21a6512..9e1df0f 100644
--- a/share/web/static/js/jifty.js
+++ b/share/web/static/js/jifty.js
@@ -1106,8 +1106,8 @@ var apply_fragment_updates = function(fragment, f) {
  *  Jifty.updateRegion( 'region-name' , '/path' , { id: 123123 , msg: 'blah'  } );
  */
 Jifty.updateRegion = function( regionName , path , args , mode ) {
-    Jifty.update({
-        fragments: [{ region: '__page-' + regionName ,
+    return Jifty.update({
+        fragments: [{ region: regionName ,
             args: args, path: path, mode: mode ? mode : 'Replace' }]
     });
 };
@@ -1118,7 +1118,7 @@ Jifty.updateRegion = function( regionName , path , args , mode ) {
 
     Jifty.update({
         fragments: [{
-            region: '__page-region_name' ,
+            region: 'region_name',
             args: { id => 123  }
             path: '/path_to_replace',
             mode: 'Replace'

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list