Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
Line 1... Line 1...
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
<!--
2
<!--
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
-
 
5
 *
-
 
6
 * == BEGIN LICENSE ==
5
 * 
7
 *
6
 * Licensed under the terms of the GNU Lesser General Public License:
8
 * Licensed under the terms of any of the following licenses at your
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
9
 * choice:
8
 * 
10
 *
9
 * For further information visit:
11
 *  - GNU General Public License Version 2 or later (the "GPL")
10
 * 		http://www.fckeditor.net/
12
 *    http://www.gnu.org/licenses/gpl.html
11
 * 
13
 *
12
 * "Support Open Source software. What about a donation today?"
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
-
 
15
 *    http://www.gnu.org/licenses/lgpl.html
13
 * 
16
 *
14
 * File Name: fck_listprop.html
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
15
 * 	Bulleted List dialog window.
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
16
 * 
19
 *
17
 * File Authors:
20
 * == END LICENSE ==
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
-
 
-
 
21
 *
19
 * 		Marcel J Bennett (start attribute)
22
 * Bulleted List dialog window.
20
-->
23
-->
21
<html xmlns="http://www.w3.org/1999/xhtml">
24
<html xmlns="http://www.w3.org/1999/xhtml">
22
<head>
25
<head>
23
	<title></title>
26
	<title></title>
24
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
25
	<meta content="noindex, nofollow" name="robots" />
28
	<meta content="noindex, nofollow" name="robots" />
26
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
29
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
27
	<script type="text/javascript">
30
	<script type="text/javascript">
Line -... Line 31...
-
 
31
 
28
 
32
var dialog	= window.parent ;
Line 29... Line 33...
29
var oEditor = window.parent.InnerDialogLoaded() ;
33
var oEditor = dialog.InnerDialogLoaded() ;
30
 
34
 
-
 
35
// Gets the document DOM
Line 31... Line 36...
31
// Gets the document DOM
36
var oDOM = oEditor.FCK.EditorDocument ;
32
var oDOM = oEditor.FCK.EditorDocument ;
37
var sListType = ( location.search == '?OL' ? 'OL' : 'UL' ) ;
Line 33... Line 38...
33
 
38
 
34
var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'UL' ) ;
39
var oActiveEl = dialog.Selection.GetSelection().MoveToAncestorNode( sListType ) ;
35
var oActiveSel ;
40
var oActiveSel ;
36
 
41
 
Line 37... Line 42...
37
window.onload = function()
42
window.onload = function()
38
{
43
{
39
	// First of all, translate the dialog box texts
44
	// First of all, translate the dialog box texts
40
	oEditor.FCKLanguageManager.TranslatePage(document) ;
45
	oEditor.FCKLanguageManager.TranslatePage(document) ;
41
 
-
 
42
	if ( oActiveEl )
46
 
43
		oActiveSel = GetE('selBulleted') ;
47
	if ( sListType == 'UL' )
44
	else
48
		oActiveSel = GetE('selBulleted') ;
45
	{
49
	else
46
		oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'OL' ) ;
50
	{
Line 55... Line 59...
55
	oActiveSel.style.display = '' ;
59
	oActiveSel.style.display = '' ;
Line 56... Line 60...
56
 
60
 
57
	if ( oActiveEl )
61
	if ( oActiveEl )
58
	{
62
	{
59
		if ( oActiveEl.getAttribute('type') )
63
		if ( oActiveEl.getAttribute('type') )
60
			oActiveSel.value = oActiveEl.getAttribute('type').toLowerCase() ;
64
			oActiveSel.value = oActiveEl.getAttribute('type') ;
Line 61... Line 65...
61
	}
65
	}
-
 
66
 
-
 
67
	dialog.SetOkButton( true ) ;
-
 
68
	dialog.SetAutoSize( true ) ;
62
 
69
 
Line 63... Line 70...
63
	window.parent.SetOkButton( true ) ;
70
	SelectField( sListType == 'OL' ? 'txtStartPosition' : 'selBulleted' ) ;
64
}
71
}
65
 
72