I get the error Filter "javascript" is not defined.

Ruby 1.9.1, Rails 2.3.5, Haml 3.0.4

Other filters are not working eather. (:plain for example). If I put
%script and  "unindent" JQUERY, everything works fine.

Please help.



-content_for :titlebar do
 Pregled učestalosti kvarova po rasvjetnim mjestima
-content_for :script do
 =javascript_include_tag 'kvar_rasvjetno_mjesto.js'
:javascript
 $(function() {
   $("table.mainTable tr").click(function () {
   id = $(this).attr("id");
   prikaziRasvjetnoMjesto(id)
  });
 });
%span#view-izvjestaj
 %table#ucestalostTable.mainTable
  %thead
   %tr.ui-widget-header
    %th Broj kvarova
    %th Oznaka
    %th Tip stupa
    %th Visina
    %th Lokacija
  %tbody
   -...@ucestalost_po_rasvjetnom_mjestu.each do |item|
    %tr{:id => item.id}
     %td= item.broj_kvarova
     %td= item.oznaka
     %td= item.tip_stupa_naziv
     %td= item.visina
     %td= item.ulica.lokacija
%br
 %img{:src =>'/izvjestaji/
ucestalost_po_rasvjetnom_mjestu_graf' , :style =>'border:1px solid
#aabcca;'}

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to