Commit d6f91554 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor code to load the preferences only the first time

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42672 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 31202f19
......@@ -361,10 +361,10 @@ $().ready(function(){\n
$("a#settings")\n
.click(function(event){\n
event.preventDefault();\n
if ($("div#preference_dialog").html() == ""){\n
$.getJSON("Base_getPreferencePathList", function(data){\n
ungPreferencePath = data.preference;\n
systemPreferencePath = data.system_preference;\n
if ($("div#preference_dialog").html() == "") {\n
$.get(ungPreferencePath + \'/Preference_viewHtmlStyle?editable_mode:int=1\', function(data){\n
$("div#preference_dialog").append("<form id=\'erp5_preference\'>" + \n
"<fieldset class=\'center editable\'>" + \n
......@@ -383,8 +383,8 @@ $().ready(function(){\n
$(data).find(\'fieldset.center.editable\').html() +\n
"</fieldset></form>");\n
});\n
}\n
});\n
}\n
$("div#preference_dialog").dialog("open");\n
});\n
$("button.ui-button, span.ui-icon").click(function(){$("p#hide_properties").click()});\n
......
184
\ No newline at end of file
185
\ No newline at end of file
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