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 407-410
tinyMCE.init({
Link Here
|
407 |
[% INCLUDE 'admin-menu.inc' %] |
368 |
[% INCLUDE 'admin-menu.inc' %] |
408 |
</div> |
369 |
</div> |
409 |
</div> |
370 |
</div> |
|
|
371 |
|
372 |
[% MACRO jsinclude BLOCK %] |
373 |
[% INCLUDE 'datatables.inc' %] |
374 |
<script type="text/javascript" src="[% interface %]/lib/tiny_mce/tiny_mce.js"></script> |
375 |
<script type="text/javascript"> |
376 |
$(document).ready(function() { |
377 |
$("#branchest").dataTable($.extend(true, {}, dataTablesDefaults, { |
378 |
"aoColumnDefs": [ |
379 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
380 |
], |
381 |
"iDisplayLength": 10, |
382 |
"sPaginationType": "four_button" |
383 |
})); |
384 |
|
385 |
[% UNLESS library %] |
386 |
$("#Aform").on("submit", function( event ) { |
387 |
if ( $("#branchcode").val().match(/\s/) ) { |
388 |
event.preventDefault(); |
389 |
alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); |
390 |
return false; |
391 |
} else { |
392 |
return true; |
393 |
} |
394 |
}); |
395 |
[% END %] |
396 |
}); |
397 |
tinyMCE.init({ |
398 |
mode : "textareas", |
399 |
theme : "advanced", |
400 |
content_css : "[% interface %]/[% theme %]/css/tinymce.css", |
401 |
plugins : "table,save,advhr,advlink,contextmenu", |
402 |
theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,", |
403 |
theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap", |
404 |
// theme_advanced_buttons3 : "", |
405 |
theme_advanced_toolbar_location : "top", |
406 |
theme_advanced_toolbar_align : "left", |
407 |
theme_advanced_path_location : "bottom", |
408 |
theme_advanced_resizing : true, |
409 |
apply_source_formatting : true |
410 |
}); |
411 |
</script> |
412 |
[% END %] |
413 |
|
410 |
[% INCLUDE 'intranet-bottom.inc' %] |
414 |
[% INCLUDE 'intranet-bottom.inc' %] |