Lines 1-3
Link Here
|
|
|
1 |
[% SET footerjs = 1 %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Administration › Libraries and groups |
3 |
<title>Koha › Administration › Libraries and groups |
3 |
[% IF op == 'editcategory' %] |
4 |
[% IF op == 'editcategory' %] |
Lines 12-59
Link Here
|
12 |
</title> |
13 |
</title> |
13 |
[% INCLUDE 'doc-head-close.inc' %] |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
14 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
15 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
15 |
[% INCLUDE 'datatables.inc' %] |
|
|
16 |
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script> |
17 |
<script type="text/javascript"> |
18 |
//<![CDATA[ |
19 |
$(document).ready(function() { |
20 |
$("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, { |
21 |
"aoColumnDefs": [ |
22 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
23 |
], |
24 |
"iDisplayLength": 10, |
25 |
"sPaginationType": "four_button" |
26 |
})); |
27 |
|
28 |
[% UNLESS library %] |
29 |
$("#Aform").on("submit", function( event ) { |
30 |
if ( $("#branchcode").val().match(/\s/) ) { |
31 |
event.preventDefault(); |
32 |
alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); |
33 |
return false; |
34 |
} else { |
35 |
return true; |
36 |
} |
37 |
}); |
38 |
[% END %] |
39 |
}); |
40 |
tinyMCE.init({ |
41 |
mode : "textareas", |
42 |
theme : "advanced", |
43 |
content_css : "[% interface %]/[% theme %]/css/tinymce.css", |
44 |
plugins : "table,save,advhr,advlink,contextmenu", |
45 |
theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,", |
46 |
theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap", |
47 |
// theme_advanced_buttons3 : "", |
48 |
theme_advanced_toolbar_location : "top", |
49 |
theme_advanced_toolbar_align : "left", |
50 |
theme_advanced_path_location : "bottom", |
51 |
theme_advanced_resizing : true, |
52 |
apply_source_formatting : true |
53 |
}); |
54 |
//]]> |
55 |
</script> |
56 |
</head> |
16 |
</head> |
|
|
17 |
|
57 |
<body id="admin_branches" class="admin"> |
18 |
<body id="admin_branches" class="admin"> |
58 |
[% INCLUDE 'header.inc' %] |
19 |
[% INCLUDE 'header.inc' %] |
59 |
[% INCLUDE 'prefs-admin-search.inc' %] |
20 |
[% INCLUDE 'prefs-admin-search.inc' %] |
Lines 403-406
tinyMCE.init({
Link Here
|
403 |
[% INCLUDE 'admin-menu.inc' %] |
364 |
[% INCLUDE 'admin-menu.inc' %] |
404 |
</div> |
365 |
</div> |
405 |
</div> |
366 |
</div> |
|
|
367 |
|
368 |
[% MACRO jsinclude BLOCK %] |
369 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script> |
370 |
[% INCLUDE 'datatables.inc' %] |
371 |
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script> |
372 |
<script type="text/javascript"> |
373 |
$(document).ready(function() { |
374 |
$("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, { |
375 |
"aoColumnDefs": [ |
376 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
377 |
], |
378 |
"iDisplayLength": 10, |
379 |
"sPaginationType": "four_button" |
380 |
})); |
381 |
|
382 |
[% UNLESS library %] |
383 |
$("#Aform").on("submit", function( event ) { |
384 |
if ( $("#branchcode").val().match(/\s/) ) { |
385 |
event.preventDefault(); |
386 |
alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); |
387 |
return false; |
388 |
} else { |
389 |
return true; |
390 |
} |
391 |
}); |
392 |
[% END %] |
393 |
}); |
394 |
tinyMCE.init({ |
395 |
mode : "textareas", |
396 |
theme : "advanced", |
397 |
content_css : "[% interface %]/[% theme %]/css/tinymce.css", |
398 |
plugins : "table,save,advhr,advlink,contextmenu", |
399 |
theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,", |
400 |
theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap", |
401 |
// theme_advanced_buttons3 : "", |
402 |
theme_advanced_toolbar_location : "top", |
403 |
theme_advanced_toolbar_align : "left", |
404 |
theme_advanced_path_location : "bottom", |
405 |
theme_advanced_resizing : true, |
406 |
apply_source_formatting : true |
407 |
}); |
408 |
</script> |
409 |
[% END %] |
410 |
|
406 |
[% INCLUDE 'intranet-bottom.inc' %] |
411 |
[% INCLUDE 'intranet-bottom.inc' %] |