[Kazehakase-cvs] CVS update: kazehakase/data/ext/ruby/kz/actions

Zurück zum Archiv-Index

Kouhei Sutou kous****@users*****
Fri Apr 28 23:21:00 JST 2006


Index: kazehakase/data/ext/ruby/kz/actions/reload-without-fragment.rb
diff -u /dev/null kazehakase/data/ext/ruby/kz/actions/reload-without-fragment.rb:1.1
--- /dev/null	Fri Apr 28 23:21:00 2006
+++ kazehakase/data/ext/ruby/kz/actions/reload-without-fragment.rb	Fri Apr 28 23:21:00 2006
@@ -0,0 +1,14 @@
+def act_reload_without_fragment(action, group, kz)
+  page = kz.current_page
+  if page and page.location
+    uri = page.location
+    page.load_url(uri.gsub(/#.*$/, ''))
+    reload = kz.actions.get_action("Reload")
+    reload.activate if reload
+  end
+end
+
+def act_reload_without_fragment_config(config, kz)
+  config[:label] = N_("Reload without fragment")
+  config[:tooltip] = N_("reload the current page URI without fragment")
+end


More information about the Kazehakase-cvs mailing list
Zurück zum Archiv-Index