View | Details | Raw Unified | Return to bug 11274
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt (-11 / +10 lines)
Lines 16-33 Link Here
16
        "sPaginationType": "four_button"
16
        "sPaginationType": "four_button"
17
    }));
17
    }));
18
18
19
    $(".notice").hide();
19
        $("#noticestable").on("click", ".notice-title", function(e){
20
    $(".notice-title").click(function(e){
20
            e.preventDefault();
21
        $(this).closest("tr").children().children(".notice").toggle();
21
            var rowid = $(this).data("noticeid");
22
        e.preventDefault();
22
            $("#notice"+rowid).toggle();
23
    });
23
        });
24
    
24
25
    });
25
    });
26
//]]>
26
//]]>
27
</script>
27
</script>
28
<style type="text/css">
28
<style type="text/css">
29
    p.notice { display: none; }
29
    .notice { display: none; }
30
    a.notice-title { font-weight: bold; display: block; }
30
    .notice-title { font-weight: bold; display: block; }
31
</style>
31
</style>
32
</head>
32
</head>
33
<body id="pat_notices" class="pat">
33
<body id="pat_notices" class="pat">
Lines 57-64 Link Here
57
	    [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
57
	    [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
58
	    <tr>
58
	    <tr>
59
		<td>
59
		<td>
60
            <a class="notice-title" href="#">[% QUEUED_MESSAGE.subject %]</a>
60
            <a class="notice-title" data-noticeid="[% QUEUED_MESSAGE.message_id %]" href="#">[% QUEUED_MESSAGE.subject %]</a>
61
            <div class="notice">
61
            <div id="notice[% QUEUED_MESSAGE.message_id %]" class="notice">
62
                [% QUEUED_MESSAGE.content FILTER html_line_break %]
62
                [% QUEUED_MESSAGE.content FILTER html_line_break %]
63
            </div>
63
            </div>
64
        </td>
64
        </td>
65
- 

Return to bug 11274