2013-04-10 Miguel de Dios <miguel.dedios@artica.es>

* godmode/reporting/visual_console_builder.editor.js: fixed the
	autosave and non-autosave actions.
	
	Fixes: #3609806
	
	* godmode/reporting/visual_console_builder.editor.php: re-added
	the translations to strings for the error messages for user across
	the javascript.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7958 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-04-10 16:28:10 +00:00
parent a815637772
commit 699d212ee0
3 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,14 @@
2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js: fixed the
autosave and non-autosave actions.
Fixes: #3609806
* godmode/reporting/visual_console_builder.editor.php: re-added
the translations to strings for the error messages for user across
the javascript.
2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map_editor.php: fixed the lost field

View File

@ -1483,6 +1483,10 @@ function deleteDB(idElement) {
}
function activeToolboxButton(id, active) {
if ($("input." + id + "[name=button_toolbox2]").length == 0) {
return;
}
if (active) {
$("input." + id + "[name=button_toolbox2]").removeAttr('disabled');
}
@ -1774,7 +1778,7 @@ function click_button_toolbox(id) {
break;
case 'auto_save':
if (autosave) {
activeToolboxButton('save', true);
activeToolboxButton('save_visualmap', true);
autosave = false;
//Disable all toolbox buttons.
@ -1788,6 +1792,7 @@ function click_button_toolbox(id) {
activeToolboxButton('simple_value', false);
activeToolboxButton('label', false);
activeToolboxButton('icon', false);
activeToolboxButton('service', false);
activeToolboxButton('edit_item', false);
activeToolboxButton('delete_item', false);
@ -1817,7 +1822,7 @@ function click_button_toolbox(id) {
activeToolboxButton('icon', true);
}
break;
case 'save':
case 'save_visualmap':
var status = true;
activeToolboxButton('save', false);
jQuery.each(list_actions_pending_save, function(key, action_pending_save) {

View File

@ -52,7 +52,7 @@ if (defined('METACONSOLE')) {
else {
html_print_input_hidden('metaconsole', 0);
}
visual_map_editor_print_hack_translate_strings();
visual_map_editor_print_item_palette($visualConsole['id'], $background);
if (!defined('METACONSOLE')) {