diff options
author | Martin Markech <martin.markech@matho.sk> | 2012-09-30 19:56:31 +0200 |
---|---|---|
committer | Martin Markech <martin.markech@matho.sk> | 2012-09-30 19:56:31 +0200 |
commit | 5225251f0463662c5ccae4332dbd17f90036a760 (patch) | |
tree | ae212b54ea0f52e4b9933d34ed7f1079cd69e442 /app/views/refinery/banners/admin/banners/new.html.erb | |
parent | a07146a6126a087f899318ab563582b3cf7f1760 (diff) | |
download | refinerycms-pc_banners-5225251f0463662c5ccae4332dbd17f90036a760.tar.gz refinerycms-pc_banners-5225251f0463662c5ccae4332dbd17f90036a760.tar.bz2 refinerycms-pc_banners-5225251f0463662c5ccae4332dbd17f90036a760.zip |
temp fix for jquery tristate - render only on new action, because on edit it has problems to correctly render some checkboxes
Diffstat (limited to 'app/views/refinery/banners/admin/banners/new.html.erb')
-rw-r--r-- | app/views/refinery/banners/admin/banners/new.html.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/refinery/banners/admin/banners/new.html.erb b/app/views/refinery/banners/admin/banners/new.html.erb index 2d34363..967b41e 100644 --- a/app/views/refinery/banners/admin/banners/new.html.erb +++ b/app/views/refinery/banners/admin/banners/new.html.erb @@ -1 +1,7 @@ +<%# TODO temp fix - activate tristate only on new. There is bug and inproperly render some checkboxes in edit action %> +<%- content_for(:javascripts) do -%> + <%= javascript_include_tag "banners/jquery.tristate.js", "banners/banners.js" -%> +<%- end -%> + <%= render 'form' %> + |