diff -r 2695537badbe -r f45d7494332e src/hdalab/templates/renkan_edit.html --- a/src/hdalab/templates/renkan_edit.html Fri Apr 03 18:41:06 2015 +0200 +++ b/src/hdalab/templates/renkan_edit.html Mon Apr 27 17:29:51 2015 +0200 @@ -15,9 +15,9 @@ {% block js_import %} {{block.super}} - - - + + + @@ -82,11 +82,11 @@ node_fill_color: false*/ language: "{{LANGUAGE_CODE}}" }); - + //_create_user_// - + //_____________// - io_options = { + io_options = { url: "{% url 'renkan_get_put' %}" + window.location.search, {% if user.is_authenticated %} user_authenticated: true, @@ -97,10 +97,10 @@ {% endif %} }; Rkns.jsonIOSaveOnClick(_renkan, io_options); - + _rkn = _renkan; }; - + $(function() { var form; @@ -113,8 +113,8 @@ dialog.dialog("close"); }); } - }); - + }); + function manageLoginForm(e, form){ e.preventDefault(); f = $(form); @@ -129,9 +129,9 @@ io_options.user_id= d.attr("id"); io_options.user_name= $("#username",d).html(); io_options.user_authenticated = true; - + _rkn.setCurrentUser(io_options.user_id, io_options.user_name); - $("#menu.profile").html(d.html()); + $("#menu.profile").html(d.html()); $(".Rk-Save-Button").click(); dialog.dialog( "close" ); return true; @@ -147,11 +147,11 @@ } }); } - + form = dialog.find( "form" ).on( "submit", function( event ) { manageLoginForm(event, this); }); - + //help dialog init var help_dialog = $( "#help-container" ).dialog({ autoOpen: false, @@ -172,10 +172,10 @@ showmarkers : false, automatic: false }); - + $("#toggle-help").click(function(){ if (help_dialog.dialog("isOpen")){ - help_dialog.dialog("close"); + help_dialog.dialog("close"); } else{ help_dialog.dialog("open"); @@ -187,7 +187,7 @@ } }); }); - + {% endblock %} @@ -234,4 +234,4 @@
-{% endblock %} \ No newline at end of file +{% endblock %}