Commit 4db92d75 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix issue to load the preference. It should be loaded after load the page

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41791 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b66bcc6
......@@ -167,7 +167,7 @@
</item>
<item>
<key> <string>lines</string> </key>
<value> <int>20</int> </value>
<value> <int>17</int> </value>
</item>
<item>
<key> <string>list_method</string> </key>
......
......@@ -109,23 +109,6 @@ function changeCheckBoxValue(value){\n
});\n
}\n
\n
$.getJSON("Base_getPreferencePathList", function(data){\n
preference = data.preference + \'/Preference_viewHtmlStyle?editable_mode:int=1\';\n
system_preference = data.system_preference + \'/SystemPreference_view?editable_mode:int=1\';\n
if ($("div#preference_dialog").html() == "") {\n
$.get(preference, function(data){\n
$("div#preference_dialog").append("<fieldset class=\'center editable\'>" + \n
$(data).find(\'fieldset.center.editable\').html() +\n
"</fieldset>");\n
});\n
$.get(system_preference, function(data){\n
$("div#preference_dialog").append("<fieldset class=\'right editable\'>" + \n
$(data).find(\'fieldset.right.editable\').html() +\n
"</fieldset>");\n
});\n
}\n
});\n
\n
$(document).ready(function(){\n
if ($("div.gadget-column").length == 0 && window.location.href.split("?").length > 1) {\n
parameterList = getUrlParameterList();\n
......@@ -332,6 +315,22 @@ $(document).ready(function(){\n
event.preventDefault();\n
changeCheckBoxValue(false);\n
});\n
$.getJSON("Base_getPreferencePathList", function(data){\n
preference = data.preference + \'/Preference_viewHtmlStyle?editable_mode:int=1\';\n
system_preference = data.system_preference + \'/SystemPreference_view?editable_mode:int=1\';\n
if ($("div#preference_dialog").html() == "") {\n
$.get(preference, function(data){\n
$("div#preference_dialog").append("<fieldset class=\'center editable\'>" + \n
$(data).find(\'fieldset.center.editable\').html() +\n
"</fieldset>");\n
});\n
$.get(system_preference, function(data){\n
$("div#preference_dialog").append("<fieldset class=\'right editable\'>" + \n
$(data).find(\'fieldset.right.editable\').html() +\n
"</fieldset>");\n
});\n
}\n
});\n
return false;\n
});
......
143
\ No newline at end of file
144
\ 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