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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-12 / +20 lines)
Lines 11-20 Link Here
11
[% END %]
11
[% END %]
12
</title>
12
</title>
13
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
14
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
14
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
15
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
15
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
16
[% INCLUDE 'datatables-strings.inc' %]
17
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
16
<script type="text/javascript" src="[% themelang %]/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
18
<script type="text/javascript" src="[% themelang %]/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
17
<script language="javascript" type="text/javascript">
19
<script type="text/javascript">
20
//<![CDATA[
21
    $(document).ready(function() {
22
        $("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, {
23
            "aoColumnDefs": [
24
                { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
25
            ],
26
            "aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
27
            "iDisplayLength": 10,
28
            "sPaginationType": "four_button"
29
        }));
30
    });
18
tinyMCE.init({
31
tinyMCE.init({
19
    mode : "textareas",
32
    mode : "textareas",
20
    theme : "advanced",
33
    theme : "advanced",
Lines 31-36 tinyMCE.init({ Link Here
31
    height : "300",
44
    height : "300",
32
    width : "700"
45
    width : "700"
33
});
46
});
47
//]]>
34
</script>
48
</script>
35
</head>
49
</head>
36
<body id="admin_branches" class="admin">
50
<body id="admin_branches" class="admin">
Lines 66-77 tinyMCE.init({ Link Here
66
80
67
	 $(document).ready(function() {
81
	 $(document).ready(function() {
68
	    yuiToolbar();
82
	    yuiToolbar();
69
		$.tablesorter.defaults.widgets = ['zebra']; 
83
    });
70
		$("#branchest").tablesorter({
71
			sortList: [[0,0]],
72
			headers: { 3:{sorter:false},4:{sorter:false},5:{sorter:false},6:{sorter:false}}
73
		}).tablesorterPager({container: $("#pagerbranchest"),positionFixed: false,size: 10}); 
74
		}); 
75
	// YUI Toolbar Functions
84
	// YUI Toolbar Functions
76
85
77
	function yuiToolbar() {
86
	function yuiToolbar() {
Lines 189-195 tinyMCE.init({ Link Here
189
    [% IF ( MESSAGE11 ) %]<div class="dialog message">Library cannot be deleted because there are patrons registered at that library</div>[% END %]
198
    [% IF ( MESSAGE11 ) %]<div class="dialog message">Library cannot be deleted because there are patrons registered at that library</div>[% END %]
190
[% IF ( branches ) %]
199
[% IF ( branches ) %]
191
<div id="pagerbranchest">
200
<div id="pagerbranchest">
192
[% INCLUDE 'table-pager.inc' perpage='10' %]
193
</div>
201
</div>
194
    <table id="branchest">
202
    <table id="branchest">
195
<thead><tr>
203
<thead><tr>
Lines 199-205 tinyMCE.init({ Link Here
199
            <th>Properties</th>
207
            <th>Properties</th>
200
            <th>IP</th>
208
            <th>IP</th>
201
            <!-- <th>Printer</th> -->
209
            <!-- <th>Printer</th> -->
202
            <th colspan="2">&nbsp;</th>
210
            <th>&nbsp;</th>
211
            <th>&nbsp;</th>
203
        </tr></thead><tbody>
212
        </tr></thead><tbody>
204
        [% FOREACH branche IN branches %]
213
        [% FOREACH branche IN branches %]
205
	[% IF ( loop.odd ) %]
214
	[% IF ( loop.odd ) %]
206
- 

Return to bug 9435