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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/elrte.inc (+51 lines)
Line 0 Link Here
1
<!--
2
#writen 13th Nov 2010 by kmkale@anantcorp.com
3
#inc file to configure the elRTE WYSWYG editor from elrte.org
4
#By using the opts array you can control the appearance of the buttons as well as size of the text area.
5
#For options of the opts array and others to control the appearance of the editor, refer to eltre.org.
6
#I have tweaked the eltre css file elrte.full.css to get the buttons to display properly in Koha.
7
#I have also removed the src directory, the changelog, readme and eltre.html files to reduce patch size and get rid of whitespace errors.
8
#I have also used a sed one liner on the eltre dir to get rid of trailing whitespace errors.
9
#This header file is inserted in the koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl
10
# Copyright Koustubha Kale
11
#
12
# This file is part of Koha.
13
#
14
# Koha is free software; you can redistribute it and/or modify it under the
15
# terms of the GNU General Public License as published by the Free Software
16
# Foundation; either version 2 of the License, or (at your option) any later
17
# version.
18
#
19
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
20
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
21
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
22
#
23
# You should have received a copy of the GNU General Public License along
24
# with Koha; if not, write to the Free Software Foundation, Inc.,
25
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26
-->
27
<script src="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/js/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
28
<script src="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/js/elrte.full.js" type="text/javascript" charset="utf-8"></script>
29
<script src="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/js/jquery-ui-1.8.5.custom.min.js" type="text/javascript" charset="utf-8"></script>
30
31
<link rel="stylesheet" href="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/css/elrte.full.css" type="text/css" media="screen" charset="utf-8">
32
<link rel="stylesheet" href="<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/js/ui-themes/smoothness/jquery-ui-1.8.5.custom.css" type="text/css" media="screen" charset="utf-8">
33
34
<script type="text/javascript" charset="utf-8">
35
//<![CDATA[
36
$().ready(function() {
37
$("#header_search").find("ul").removeClass();
38
$("#header_search").find("ul").addClass("ui-tabs-nav");
39
  var opts = {
40
      stripWhiteSpace : 'false',
41
      cssClass : 'el-rte',
42
      // lang     : 'ru',
43
      height   : 450,
44
      toolbar  : 'complete',
45
      //toolbar  : 'tiny',
46
      cssfiles : ['<!-- TMPL_VAR name="themelang" -->/js/elrte-1.1/css/elrte-inner.css']
47
  }
48
  $('#new').elrte(opts);
49
})
50
//]]>
51
	</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl (-2 / +2 lines)
Lines 2-7 Link Here
2
<title>Koha &rsaquo; Tools &rsaquo; News</title>
2
<title>Koha &rsaquo; Tools &rsaquo; News</title>
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
4
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
5
<!-- TMPL_INCLUDE NAME="elrte.inc" -->
5
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6
<script type="text/javascript">//<![CDATA[
7
<script type="text/javascript">//<![CDATA[
7
$(document).ready(function() {
8
$(document).ready(function() {
Lines 9-15 $(document).ready(function() { Link Here
9
		dateFormat: 'uk',<!-- /TMPL_IF -->
10
		dateFormat: 'uk',<!-- /TMPL_IF -->
10
		sortList: [[2,0]],
11
		sortList: [[2,0]],
11
		headers: { 0: {sorter:false},6: { sorter: false },7: { sorter: false }}
12
		headers: { 0: {sorter:false},6: { sorter: false },7: { sorter: false }}
12
	}); 
13
	});
13
}); 
14
}); 
14
//]]>
15
//]]>
15
</script>
16
</script>
16
- 

Return to bug 5401