Commit e7de2e06 authored by François Billioud's avatar François Billioud

change link management

parent 240c60da
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
/UNGProject/css/images/ /UNGProject/css/images/
/UNGProject/svg-edit/ /UNGProject/svg-edit/
/UNGProject/dav /UNGProject/dav
/UNGProject/Aloha
# buildout # buildout
/bin/ /bin/
......
...@@ -261,8 +261,8 @@ div.gadget-column { ...@@ -261,8 +261,8 @@ div.gadget-column {
margin-left: -4px; margin-left: -4px;
margin-right: -8px; margin-right: -8px;
} }
/* "create new" menu */ /* listbox menus */
.menu_create_object { .option_menu {
font-family: arial,sans-serif; font-family: arial,sans-serif;
font-size: 14px; font-size: 14px;
list-style: none outside none; list-style: none outside none;
...@@ -272,34 +272,34 @@ div.gadget-column { ...@@ -272,34 +272,34 @@ div.gadget-column {
margin-left: 5px; margin-left: 5px;
float:left; float:left;
} }
.menu_create_object li { .option_menu li {
padding-top: 0.5em; padding-top: 0.5em;
position: relative; position: relative;
text-decoration: none; text-decoration: none;
} }
.menu_create_object li a { .option_menu li div {
display: block; display: block;
text-decoration: none; text-decoration: none;
} }
.menu_create_object li a#current { .option_menu li div.fix {
height: 19px; height: 19px;
padding-left: 2px; padding-left: 2px;
padding-right: 14px; padding-right: 14px;
text-align: justify; text-align: justify;
width: 78px; width: 78px;
} }
.menu_create_object li a#current img { .option_menu li div.fix img {
margin-left: 3px; margin-left: 3px;
position: relative; position: relative;
top: 2px; top: 2px;
} }
.menu_create_object img { .option_menu img {
border: 0 none; border: 0 none;
} }
.menu_create_object li:hover ul { .option_menu li:hover ul {
display: block; display: block;
} }
.menu_create_object li ul { .option_menu li ul {
display: none; display: none;
height: auto; height: auto;
position: absolute; position: absolute;
...@@ -307,16 +307,17 @@ div.gadget-column { ...@@ -307,16 +307,17 @@ div.gadget-column {
background-color: #FFFFFF; background-color: #FFFFFF;
border: 1px solid #D1D1D1; border: 1px solid #D1D1D1;
} }
.menu_create_object ul { .option_menu ul {
list-style: none outside none; list-style: none outside none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.menu_create_object li a:hover { .option_menu li div:hover {
color: #000000; color: #000000;
text-decoration: none; text-decoration: none;
cursor: pointer;
} }
.menu_create_object li ul a { .option_menu li ul div {
color: #002E3F; color: #002E3F;
display: block; display: block;
font-size: 14px; font-size: 14px;
...@@ -337,7 +338,7 @@ div.gadget-action input#upload { ...@@ -337,7 +338,7 @@ div.gadget-action input#upload {
/* action list */ /* action list */
div.gadget-column div.file-selection { div.gadget-column div.file-selection {
background-color: #FFFFFF; background-color: #FFFFFF;
margin: 15px -4px -4px; margin: 0.5em -4px -4px;
} }
div.gadget-column div.file-selection div.file-quick-browser, div.gadget-column div.file-selection div.file-quick-browser,
div.gadget-column div.file-selection div.file-quick-search { div.gadget-column div.file-selection div.file-quick-search {
...@@ -359,6 +360,7 @@ div.listbox-domain-tree-container select { ...@@ -359,6 +360,7 @@ div.listbox-domain-tree-container select {
background: none repeat scroll 0 0 #FFFFFF; background: none repeat scroll 0 0 #FFFFFF;
border: medium none; border: medium none;
cursor: pointer; cursor: pointer;
margin-left: 1em;
} }
/* gadgets */ /* gadgets */
......
...@@ -191,7 +191,7 @@ getCurrentUser = function() { ...@@ -191,7 +191,7 @@ getCurrentUser = function() {
/** /**
* Class Storage * Class Storage
* this class provides usual API to save/load/delete documents * this class provides usual API to save/load/delete elements
* @param type : "local" to save in localStorage, or "JIO" for remote storage * @param type : "local" to save in localStorage, or "JIO" for remote storage
* @param userName : the name of the user concerned by this storage * @param userName : the name of the user concerned by this storage
*/ */
...@@ -212,10 +212,7 @@ Storage.prototype.load({ ...@@ -212,10 +212,7 @@ Storage.prototype.load({
getUser: function() {return this.user;}, getUser: function() {return this.user;},
loadUser: function(userName) {}, loadUser: function(userName) {},
setUser: function(user) {this.user = user}, setUser: function(user) {this.user = user}
getDocument: function(address, instruction) {},
saveDocument: function(doc, address, instruction) {},
deleteDocument: function(address, instruction) {}
}); });
/** /**
...@@ -601,6 +598,7 @@ var startDocumentEdition = function(doc) { ...@@ -601,6 +598,7 @@ var startDocumentEdition = function(doc) {
var stopDocumentEdition = function() { var stopDocumentEdition = function() {
saveCurrentDocument(); saveCurrentDocument();
window.location = "ung.html"; window.location = "ung.html";
return false;
} }
/** /**
...@@ -618,6 +616,7 @@ var signOut = function() { ...@@ -618,6 +616,7 @@ var signOut = function() {
delete localStorage.currentStorage; delete localStorage.currentStorage;
delete localStorage.currentDocumentID; delete localStorage.currentDocumentID;
window.location = "login.html"; window.location = "login.html";
return false
} }
cancel_sharing = function() {alert("cancel");} cancel_sharing = function() {alert("cancel");}
......
...@@ -44,6 +44,15 @@ UngObject.prototype.equals = function(object) { ...@@ -44,6 +44,15 @@ UngObject.prototype.equals = function(object) {
return true; return true;
} }
/* return a copy of the current object */
UngObject.prototype.copy = function() {
var copied = new Object();
for (var property in this) {
copied[property] = this[property]!==null&&typeof(this[property])=="object" ? UngObject.prototype.copy.call(this[property]) : this[property];
}
return copied;
}
/** /**
* Class List * Class List
...@@ -152,6 +161,13 @@ List.prototype.load({ ...@@ -152,6 +161,13 @@ List.prototype.load({
} else { } else {
if(element===this.head()) {this.pop();}//with usual comparator if(element===this.head()) {this.pop();}//with usual comparator
} }
},
concat: function(list) {
if(list.size()==0) {return this}
var l1 = this.copy();
var l2 = list.copy();
l1.add(l2.get(l2.size()-1));
return l2;
} }
}); });
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<div class="input"><div > <div class="input"><div >
<a class="email" href="ung/mail.html" lang="en">Email</a> <a class="email" href="ung/mail.html" lang="en">Email</a>
<a class="document" href="#" onclick="stopDocumentEdition()" lang="en">Documents</a> <a class="document" href="ung.html" onclick="stopDocumentEdition()" lang="en">Documents</a>
<a class="calendar" href="ung/calendar.html" lang="en">Calendar</a> <a class="calendar" href="ung/calendar.html" lang="en">Calendar</a>
</div></div> </div></div>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
| <a id="settings" href="#" lang="en">Parametres</a> | <a id="settings" href="#" lang="en">Parametres</a>
| <a id="help" href="#" lang="en">Help</a> | <a id="help" href="#" lang="en">Help</a>
| <a href="WebSite_logout" id="log" lang="en">Sign out</a> | <a id="sign_out" href="login.html" onclick="signOut()">Sign out</a>
</div></div> </div></div>
...@@ -138,12 +138,12 @@ ...@@ -138,12 +138,12 @@
<label>search_bar</label> <label>search_bar</label>
<div class="input"><div > <div class="input"><div >
<a class="ung_docs" href="#" onclick="stopDocumentEdition()"> <a class="ung_docs" href="ung.html" onclick="stopDocumentEdition()">
<img src="images/ung/ung-logo.gif" alt="logo"/> <img src="images/ung/ung-logo.gif" alt="logo"/>
</a> </a>
<a id="loading_message" lang="en">Loading...</a> <a id="loading_message" lang="en">Loading...</a>
<a id="document_title" name="document_title" onclick="javascript:editDocumentSettings()">Untitled</a> <a id="document_title" name="document_title" onclick="editDocumentSettings()">Untitled</a>
<a id="document_state" name="document_state">...</a> <a id="document_state" name="document_state">...</a>
</div></div> </div></div>
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<a id="last_update">Updated ... by</a> <a id="last_update">Updated ... by</a>
<a id="author">Unknown</a> <a id="author">Unknown</a>
<button type="button" onclick="javascript:saveCurrentDocument()">Save</button> <button type="button" onclick="saveCurrentDocument()">Save</button>
<div class="action_menu"> <div class="action_menu">
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<div class="input"><div > <div class="input"><div >
<a class="email" href="/ung/mail">Email</a> <a class="email" href="/ung/mail">Email</a>
<a class="document" href="#" onclick="window.location.reload()">Documents</a> <a class="document" href="ung.html">Documents</a>
<a class="calendar" href="/ung/calendar">Calendar</a> <a class="calendar" href="/ung/calendar">Calendar</a>
</div></div> </div></div>
</div> </div>
...@@ -121,9 +121,9 @@ ...@@ -121,9 +121,9 @@
<a id="right_message">Not Implemented yet</a> <a id="right_message">Not Implemented yet</a>
<div id="preference_dialog" title="UNG Preferences"></div> <div id="preference_dialog" title="UNG Preferences"></div>
<a id="userName">Unknown</a> <a id="userName">Unknown</a>
| <a id="settings" href="">Settings</a> | <a id="settings" href="#">Settings</a>
| <a id="help" href="">Help</a> | <a id="help" href="#">Help</a>
| <a id="sign_out" href="" onclick="signOut()">Sign out</a> | <a id="sign_out" href="login.html" onclick="signOut()">Sign out</a>
</div></div> </div></div>
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
<div class="input"><div > <div class="input"><div >
<a class="ung_docs" href="#" onclick="window.location.reload()"> <a class="ung_docs" href="ung.html">
<img src="images/ung/ung-logo.gif"/> <img src="images/ung/ung-logo.gif"/>
</a> </a>
<a id="loading_message">Loading...</a> <a id="loading_message">Loading...</a>
...@@ -187,30 +187,30 @@ ...@@ -187,30 +187,30 @@
<div class="gadget-column"> <div class="gadget-column">
<div class="gadget-action"> <div class="gadget-action">
<div class="menu_create_object"> <div class="create_object option_menu">
<ul><li> <ul><li>
<a id="current" class="ung_button"> <div class="fix ung_button">
<span>Create New</span> <span>Create New</span>
<img src="images/ung/arrow.png"/> <img src="images/ung/arrow.png"/>
</a> </div>
<ul> <ul>
<li> <li>
<a href="#" onclick="createNewDocument('illustration')"> <div onclick="createNewDocument('illustration')">
<img src="images/icons/svg.png" alt=""/> <img src="images/icons/svg.png" alt=""/>
<span>Web Illustration</span> <span>Web Illustration</span>
</a> </div>
</li> </li>
<li> <li>
<a href="#" onclick="createNewDocument('table')"> <div onclick="createNewDocument('table')">
<img src="images/icons/table.png" alt=""/> <img src="images/icons/table.png" alt=""/>
<span>Web Table</span> <span>Web Table</span>
</a> </div>
</li> </li>
<li> <li>
<a href="#" onclick="createNewDocument('text')"> <div onclick="createNewDocument('text')">
<img src="images/icons/document.png"/> <img src="images/icons/document.png"/>
<span>Web Page</span> <span>Web Page</span>
</a> </div>
</li> </li>
</ul> </ul>
</li></ul> </li></ul>
...@@ -446,7 +446,7 @@ ...@@ -446,7 +446,7 @@
<div class="favorite"> <div class="favorite">
<a class="domain_selected"></a> <a class="domain_selected"></a>
<a href="#" onclick="javascript:window.location.reload()">Refresh</a> <a href="ung.html">Refresh</a>
</div> </div>
</div></div> </div></div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment