moksha/public/javascript/moksha.js | 11 +++++++++++ 1 file changed, 11 insertions(+)
New commits: commit ff99075c55de3e5ab3b36e1e8c7c1b7098c14380 Author: John (J5) Palmieri johnp@redhat.com Date: Fri Mar 20 18:05:21 2009 -0400
add a goto command for loading up a link w/ csrf intact
diff --git a/moksha/public/javascript/moksha.js b/moksha/public/javascript/moksha.js index 231577c..78b376e 100644 --- a/moksha/public/javascript/moksha.js +++ b/moksha/public/javascript/moksha.js @@ -120,6 +120,17 @@ moksha = {
},
+ /******************************************************************** + * Take a url and target, attach the csrf hash if available and load + * + * FIXME: target is ignored for now + * + * TODO: Fast loading where we just switch tabs + ********************************************************************/ + goto: function(url, target) { + window.location.href = moksha.csrf_rewrite_url(url); + }, + /* * modified from parseUri 1.2.1 Steven Levithan <stevenlevithan.com> */
moksha-commits@lists.fedorahosted.org