Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
8867af67
Commit
8867af67
authored
Nov 24, 2011
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/trac/master'
parents
d9c16882
b6c5710e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
UNGProject/js/theme.js
UNGProject/js/theme.js
+7
-8
UNGProject/theme.html
UNGProject/theme.html
+3
-1
No files found.
UNGProject/js/theme.js
View file @
8867af67
...
...
@@ -558,12 +558,11 @@ share = function() {alert("share");}
editDocumentSettings
=
function
()
{
Document
.
saveCurrentDocument
();
loadFile
(
"
xml/xmlElements.xml
"
,
"
html
"
,
function
(
data
)
{
$
(
data
).
find
(
"
rename
"
).
dialog
({
autoOpen
:
true
,
height
:
131
,
width
:
389
,
modal
:
true
,
buttons
:
{
thedialog
.
html
(
$
(
data
).
find
(
"
rename
"
))
thedialog
.
dialog
(
"
option
"
,
"
width
"
,
400
);
thedialog
.
dialog
(
"
option
"
,
"
height
"
,
200
);
thedialog
.
dialog
(
"
option
"
,
"
buttons
"
,
{
"
Save
"
:
function
(){
var
doc
=
getCurrentDocument
();
doc
.
setTitle
(
$
(
this
).
find
(
"
#name
"
).
attr
(
"
value
"
));
...
...
@@ -571,10 +570,10 @@ editDocumentSettings = function() {
doc
.
setVersion
(
$
(
getCurrentDocument
()).
find
(
"
#version
"
).
attr
(
"
value
"
));
Document
.
saveCurrentDocument
();
doc
.
setAsCurrentDocument
();
//diplay modifications
$
(
this
)
.
dialog
(
"
close
"
);
thedialog
.
dialog
(
"
close
"
);
},
Cancel
:
function
()
{
$
(
this
)
.
dialog
(
"
close
"
);
thedialog
.
dialog
(
"
close
"
);
}
}
});
...
...
UNGProject/theme.html
View file @
8867af67
...
...
@@ -30,9 +30,11 @@
<script
type=
"text/javascript"
>
// initialize
var
thedialog
;
var
init
=
function
()
{
Page
.
initialize
(
Document
.
supportedDocuments
[
getCurrentDocument
().
getType
()].
editorPage
);
Storage
.
initialize
();
thedialog
=
$
(
"
#diag
"
).
dialog
({
title
:
""
,
modal
:
true
,
autoOpen
:
false
});
}
$
(
document
).
ready
(
init
);
...
...
@@ -40,7 +42,7 @@
</head>
<body>
<div
id=
"diag"
style=
"padding:0;"
></div>
<div
class=
"container"
>
<div
class=
"navigation"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment