~replaceafill/schooltool/new_manage

« back to all changes in this revision

Viewing changes to src/schooltool/report/browser/templates/f_school_report_links_body.pt

  • Committer: Douglas Cerna
  • Date: 2014-11-21 19:18:29 UTC
  • Revision ID: douglascerna@yahoo.com-20141121191829-updg5v0gknkmoqqc
More style fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
                           title item/title">
12
12
          <option tal:content="title"
13
13
                  tal:condition="item/is_report_link"
14
 
                  tal:attributes="value url;
 
14
                  tal:attributes="value link_id;
15
15
                                  id link_id;
16
 
                                  title title;" />
 
16
                                  title item/description;" />
 
17
          <script>ST.state.push()</script>
 
18
          <tal:script replace="structure scriptlocal:
 
19
                               url;
 
20
                               title;
 
21
                               link_id;" />
 
22
          <script>
 
23
            $(ST.dialogs.jquery_id(ST.local.link_id)).data(
 
24
                'info',
 
25
                {title: ST.local.title, url: ST.local.url});
 
26
          </script>
 
27
          <script>ST.state.pop()</script>
17
28
        </tal:block>
18
29
      </tal:block>
19
30
    </select>
36
47
                  var option = $(ST.dialogs.jquery_id(select_id) + ' option:selected'),
37
48
                      option_value = option.val();
38
49
                  if (option_value) {
39
 
                      ST.dialogs.open_modal_form(option_value,
 
50
                      ST.dialogs.open_modal_form(option.data('info').url,
40
51
                                                 container_id,
41
 
                                                 option.attr('title'));
 
52
                                                 option.data('info').title);
42
53
                  }
43
54
                  return false;
44
55
              }}());