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

Merge branch 'master' of https://git.erp5.org/repos/ung

Conflicts:
	UNGProject/js/theme.js
parents d1d0521a 3ca20abe
...@@ -125,7 +125,7 @@ setCurrentPage = function(page) { ...@@ -125,7 +125,7 @@ setCurrentPage = function(page) {
/* /*
* user class * user class
*/ */
var User = function() { var User = function(details) {
this.name = "unknown"; this.name = "unknown";
this.language = "en"; this.language = "en";
this.storage = "http://www.unhosted-dav.com"; this.storage = "http://www.unhosted-dav.com";
...@@ -151,7 +151,7 @@ User.prototype.load({ ...@@ -151,7 +151,7 @@ User.prototype.load({
getCurrentUser = function() { getCurrentUser = function() {
var user = new User(); var user = new User();
user.load(JSON.parse(localStorage.getItem("currentUser"))) user.load(JSON.parse(localStorage.getItem("currentUser")));
return user; return user;
} }
setCurrentUser = function(user) {localStorage.setItem("currentUser", JSON.stringify(user));} setCurrentUser = function(user) {localStorage.setItem("currentUser", JSON.stringify(user));}
...@@ -235,12 +235,12 @@ setCurrentDocument = function(doc) {localStorage.setItem("currentDocument",JSON. ...@@ -235,12 +235,12 @@ setCurrentDocument = function(doc) {localStorage.setItem("currentDocument",JSON.
editDocumentSettings = function() { editDocumentSettings = function() {
$("#edit_document").dialog({ $("#edit_document").dialog({
autoOpen: true, autoOpen: false,
height: 131, height: 131,
width: 389, width: 389,
modal: true, modal: true,
buttons: { buttons: {
'Save': function(){ "Save": function(){
/*getCurrentDocument().setTitle($(getCurrentDocument()).find("#name").attr("value")); /*getCurrentDocument().setTitle($(getCurrentDocument()).find("#name").attr("value"));
//var new_short_title = $("input#short_title.short_title").attr("value"); //var new_short_title = $("input#short_title.short_title").attr("value");
getCurrentDocument().setLanguage($(getCurrentDocument()).find("#language").attr("value")); getCurrentDocument().setLanguage($(getCurrentDocument()).find("#language").attr("value"));
...@@ -249,10 +249,10 @@ editDocumentSettings = function() { ...@@ -249,10 +249,10 @@ editDocumentSettings = function() {
//var new_subject_list = $("textarea#keyword_list").attr("value").replace(/\n+/g, ","); //var new_subject_list = $("textarea#keyword_list").attr("value").replace(/\n+/g, ",");
getCurrentDocument().setAsCurrentDocument();//diplay modifications getCurrentDocument().setAsCurrentDocument();//diplay modifications
//save_button.click();*/ //save_button.click();*/
$(this).dialog('close'); $(this).dialog("close");
}, },
'Cancel': function() { Cancel: function() {
$(this).dialog('close'); $(this).dialog("close");
} }
} }
}); });
......
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