Permalink
Browse files

fix plugin name because of error in repo name ))

  • Loading branch information...
1 parent 2723184 commit b914393d6a32d153883da7364d80262a9d78850d @0xBF committed Feb 8, 2012
Showing with 8 additions and 8 deletions.
  1. +3 −3 README
  2. +5 −5 init.rb
View
@@ -13,7 +13,7 @@ Based on "unobtrusive table sort script revisited", big thanks to Brian McAllist
Usage:
======
-{{sortable_tables}}
+{{sortable_table}}
|_(sortable). Column 1|_(sortable-numeric). Column 2|_. Unsortable|
@@ -29,7 +29,7 @@ More info about sorting:
Installation:
=============
-copy plugin into vendor/plugins directory with name `sortable_tables'
+copy plugin into vendor/plugins directory with name `sortable_table'
restart redmine
@@ -38,6 +38,6 @@ restart redmine
How it work:
============
-macros `sortable_tables' include required javascript and css files.
+macros `sortable_table' include required javascript and css files.
included javascript automatically make sortable all tables with columns headers class `sortable*'
View
@@ -1,7 +1,7 @@
#
-Redmine::Plugin.register :sortable_tables do
- name 'Sortable tables plugin'
+Redmine::Plugin.register :sortable_table do
+ name 'Sortable table plugin'
author 'Alexander Golovko'
description ''
version '0.99'
@@ -12,11 +12,11 @@
Redmine::WikiFormatting::Macros.register do
desc "Macro for add javascript and css files for table sort work"
- macro :sortable_tables do |obj, args|
+ macro :sortable_table do |obj, args|
content_for :header_tags do
" %s\n %s" % [
- javascript_include_tag( "tablesort.js", :plugin => 'sortable_tables'),
- stylesheet_link_tag( :default, :plugin => 'sortable_tables')
+ javascript_include_tag( "tablesort.js", :plugin => 'sortable_table'),
+ stylesheet_link_tag( :default, :plugin => 'sortable_table')
]
end
""

0 comments on commit b914393

Please sign in to comment.