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
1adef964
Commit
1adef964
authored
Aug 19, 2011
by
François Billioud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move mobile website to the folder mobile
parent
26639b48
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
10 deletions
+10
-10
UNGProject/mobile/css/ung-mobile.css
UNGProject/mobile/css/ung-mobile.css
+0
-0
UNGProject/mobile/js/login-mobile.js
UNGProject/mobile/js/login-mobile.js
+1
-1
UNGProject/mobile/js/theme-mobile.js
UNGProject/mobile/js/theme-mobile.js
+8
-8
UNGProject/mobile/js/tools-mobile.js
UNGProject/mobile/js/tools-mobile.js
+1
-1
UNGProject/mobile/js/ung-mobile.js
UNGProject/mobile/js/ung-mobile.js
+0
-0
UNGProject/mobile/login-mobile.html
UNGProject/mobile/login-mobile.html
+0
-0
UNGProject/mobile/theme-mobile.html
UNGProject/mobile/theme-mobile.html
+0
-0
UNGProject/mobile/ung-mobile.html
UNGProject/mobile/ung-mobile.html
+0
-0
No files found.
UNGProject/css/ung-mobile.css
→
UNGProject/
mobile/
css/ung-mobile.css
View file @
1adef964
File moved
UNGProject/js/login-mobile.js
→
UNGProject/
mobile/
js/login-mobile.js
View file @
1adef964
...
...
@@ -22,7 +22,7 @@ var logUser = function() {
var
IDProvider
=
$
(
"
input#id_provider
"
).
attr
(
"
value
"
);
if
(
name
)
{
setCurrentStorage
(
IDProvider
?
new
JIOStorage
(
name
,
IDProvider
)
:
new
LocalStorage
(
name
));
window
.
location
=
"
ung-mobile.html
"
;
window
.
location
.
href
=
"
ung-mobile.html
"
;
}
}
...
...
UNGProject/js/theme-mobile.js
→
UNGProject/
mobile/
js/theme-mobile.js
View file @
1adef964
...
...
@@ -73,7 +73,7 @@ Page.prototype = {
doc
=
new
JSONIllustrationDocument
();
break
;
default
:
//renvoie à la page d'accueil
window
.
location
=
"
ung.html
"
;
window
.
location
.
href
=
"
ung.html
"
;
return
;
break
;
}
...
...
@@ -329,7 +329,7 @@ getCurrentStorage = function() {
var
dataStorage
=
JSON
.
parse
(
localStorage
.
getItem
(
"
currentStorage
"
));
if
(
!
dataStorage
)
{
setCurrentStorage
(
new
LocalStorage
(
"
ung
"
));
//window.location = "login-mobile.html";
//window.location
.href
= "login-mobile.html";
return
null
;
}
//if it's the first connexion
...
...
@@ -373,8 +373,8 @@ var JSONDocument = function(arg) {
this
.
lastUser
=
getCurrentUser
().
getName
();
this
.
title
=
"
Untitled
"
;
this
.
content
=
""
;
this
.
creation
=
c
urrentTime
();
this
.
lastModification
=
c
urrentTime
();
this
.
creation
=
getC
urrentTime
();
this
.
lastModification
=
getC
urrentTime
();
this
.
state
=
JSONDocument
.
prototype
.
states
.
draft
;
}
}
...
...
@@ -412,7 +412,7 @@ JSONDocument.prototype.load({//add methods thanks to the UngObject.load method
getLastModification
:
function
()
{
var
date
=
(
new
Date
(
this
.
lastModification
)).
toGMTString
();
var
day
=
date
.
substring
(
0
,
16
);
var
today
=
(
new
Date
(
c
urrentTime
())).
toGMTString
().
substring
(
0
,
16
);
var
today
=
(
new
Date
(
getC
urrentTime
())).
toGMTString
().
substring
(
0
,
16
);
return
(
day
===
today
)
?
date
.
substring
(
17
,
date
.
length
)
:
day
;
},
setLastModification
:
function
(
date
)
{
this
.
lastModification
=
date
;},
...
...
@@ -602,13 +602,13 @@ var startDocumentEdition = function(doc) {
getCurrentStorage
().
getDocument
(
getDocumentAddress
(
doc
),
function
(
data
)
{
doc
.
load
(
data
);
setCurrentDocument
(
doc
);
if
(
supportedDocuments
[
doc
.
getType
()].
editorPage
)
{
window
.
location
=
"
theme-mobile.html
"
;}
if
(
supportedDocuments
[
doc
.
getType
()].
editorPage
)
{
window
.
location
.
href
=
"
theme-mobile.html
"
;}
else
alert
(
"
no editor available for this document
"
);
});
}
var
stopDocumentEdition
=
function
()
{
saveCurrentDocument
();
window
.
location
=
"
ung-mobile.html
"
;
window
.
location
.
href
=
"
ung-mobile.html
"
;
return
false
;
}
...
...
@@ -626,7 +626,7 @@ var changeLanguage = function(language) {
var
signOut
=
function
()
{
delete
localStorage
.
currentStorage
;
delete
localStorage
.
currentDocumentID
;
window
.
location
=
"
login-mobile.html
"
;
window
.
location
.
href
=
"
login-mobile.html
"
;
return
false
;
}
...
...
UNGProject/js/tools-mobile.js
→
UNGProject/
mobile/
js/tools-mobile.js
View file @
1adef964
...
...
@@ -222,7 +222,7 @@ errorMessage = function(message,object) {
/**
* returns the current date (number of ms since 1/1/1970 at 12:00 AM)
*/
currentTime
=
function
()
{
return
Date
.
now
();}
function
getCurrentTime
()
{
return
Date
.
now
();}
/**
* cuts a string if too long
...
...
UNGProject/js/ung-mobile.js
→
UNGProject/
mobile/
js/ung-mobile.js
View file @
1adef964
File moved
UNGProject/login-mobile.html
→
UNGProject/
mobile/
login-mobile.html
View file @
1adef964
File moved
UNGProject/theme-mobile.html
→
UNGProject/
mobile/
theme-mobile.html
View file @
1adef964
File moved
UNGProject/ung-mobile.html
→
UNGProject/
mobile/
ung-mobile.html
View file @
1adef964
File moved
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