diff --git a/resources/library/interactivities/Cat images.wgt/js/script.js b/resources/library/interactivities/Cat images.wgt/js/script.js index 14b54c79..7f8ca614 100644 --- a/resources/library/interactivities/Cat images.wgt/js/script.js +++ b/resources/library/interactivities/Cat images.wgt/js/script.js @@ -34,12 +34,21 @@ function start(){ if (window.widget) { window.widget.onleave = function(){ - //exportData(); + exportData(); } } $("#wgt_reload").click(function(){ - window.location.reload(); + if($("#wgt_display").hasClass("selected")){ + $("#wgt_edit").trigger("click"); + $("#wgt_display").trigger("click"); + } else { + $("#wgt_display").trigger("click"); + } + }); + + $("#wgt_reload, #wgt_display, #wgt_edit").mouseover(function(){ + exportData(); }); $(".style_select").change(function (event){ @@ -131,9 +140,9 @@ function start(){ $("").appendTo($(this)); $("").appendTo($(this)); $(this).attr("ondragenter", "return false;") - .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") - .attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") - .attr("ondrop", "$(this).css(\"background-color\",\"\"); return onDropTarget(this,event);") + .attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") + .attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") + .attr("ondrop", "$(this).css(\"background-color\",\"#E6F6FF\"); return onDropTarget(this,event);") .removeClass("red_cont") .removeClass("green_cont") .addClass("def_cont") diff --git a/resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js b/resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js index 371d2623..8cf62916 100644 --- a/resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js +++ b/resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js @@ -34,12 +34,21 @@ function start(){ if (window.widget) { window.widget.onleave = function(){ - //exportData(); + exportData(); } } $("#wgt_reload").click(function(){ - window.location.reload(); + if($("#wgt_display").hasClass("selected")){ + $("#wgt_edit").trigger("click"); + $("#wgt_display").trigger("click"); + } else { + $("#wgt_display").trigger("click"); + } + }); + + $("#wgt_reload, #wgt_display, #wgt_edit").mouseover(function(){ + exportData(); }); $(".style_select").change(function (event){ @@ -131,9 +140,9 @@ function start(){ $("").appendTo($(this)); $("").appendTo($(this)); $(this).attr("ondragenter", "return false;") - .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") - .attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") - .attr("ondrop", "$(this).css(\"background-color\",\"\"); return onDropTarget(this,event);") + .attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") + .attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") + .attr("ondrop", "$(this).css(\"background-color\",\"#E6F6FF\"); return onDropTarget(this,event);") .removeClass("red_cont") .removeClass("green_cont") .addClass("def_cont") diff --git a/resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js b/resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js index d1f8f5fd..778a3ad5 100644 --- a/resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js +++ b/resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js @@ -34,12 +34,21 @@ function start(){ if (window.widget) { window.widget.onleave = function(){ - //exportData(); + exportData(); } } $("#wgt_reload").click(function(){ - window.location.reload(); + if($("#wgt_display").hasClass("selected")){ + $("#wgt_edit").trigger("click"); + $("#wgt_display").trigger("click"); + } else { + $("#wgt_display").trigger("click"); + } + }); + + $("#wgt_reload, #wgt_display, #wgt_edit").mouseover(function(){ + exportData(); }); $(".style_select").change(function (event){ @@ -131,9 +140,9 @@ function start(){ $("").appendTo($(this)); $("").appendTo($(this)); $(this).attr("ondragenter", "return false;") - .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") - .attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") - .attr("ondrop", "$(this).css(\"background-color\",\"\"); return onDropTarget(this,event);") + .attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") + .attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") + .attr("ondrop", "$(this).css(\"background-color\",\"#E6F6FF\"); return onDropTarget(this,event);") .removeClass("red_cont") .removeClass("green_cont") .addClass("def_cont")