--- a/src/hdalab/templates/renkan_edit.html Fri Jan 09 11:51:40 2015 +0100
+++ b/src/hdalab/templates/renkan_edit.html Fri Jan 09 16:09:23 2015 +0100
@@ -36,6 +36,7 @@
var _renkan = new Rkns.Renkan({
manual_save: true,
user_color_editable: false,
+ user_name_editable: false,
show_user_color: false,
{% if user.is_authenticated %}
user_id:"{{ user.id }}",
@@ -92,7 +93,6 @@
dialog = $( "#dialog-form" ).dialog({
autoOpen: false,
- height: 398,
width: 520,
modal: true,
create: function (event, ui) {
@@ -111,13 +111,14 @@
data: f.serialize(),
success: function(data, textStatus, jqXHR) {
var d = $(data);
- if($(".ok",d).length==1){
- console.log("ok");
- $("#dialog-form").html($(".ok",d)[0]);
- $(".hello-user").remove();
- $("#nav").append($(".username",d).children());
+ if(d.hasClass("ok")){
io_options.user_authenticated = true;
- $(".Rk-Save-Button").addClass("Rk-Save-Online");
+ io_options.login_user = true;
+ io_options.user_id= d.attr("id");
+ io_options.user_name= $("#username",d).html();
+
+ $("#menu.profile").html(d.html());
+ $(".Rk-CurrentUser-Name").html(io_options.user_name);
dialog.dialog( "close" );
$(".Rk-Save-Button").click();
return true;