|
|
@ -34,12 +34,21 @@ function start(){ |
|
|
|
|
|
|
|
|
|
|
|
if (window.widget) { |
|
|
|
if (window.widget) { |
|
|
|
window.widget.onleave = function(){ |
|
|
|
window.widget.onleave = function(){ |
|
|
|
//exportData();
|
|
|
|
exportData(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$("#wgt_reload").click(function(){ |
|
|
|
$("#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){ |
|
|
|
$(".style_select").change(function (event){ |
|
|
@ -131,9 +140,9 @@ function start(){ |
|
|
|
$("<button class='del_category'>-</button>").appendTo($(this)); |
|
|
|
$("<button class='del_category'>-</button>").appendTo($(this)); |
|
|
|
$("<button class='add_category'>+</button>").appendTo($(this)); |
|
|
|
$("<button class='add_category'>+</button>").appendTo($(this)); |
|
|
|
$(this).attr("ondragenter", "return false;") |
|
|
|
$(this).attr("ondragenter", "return false;") |
|
|
|
.attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;") |
|
|
|
.attr("ondragleave", "$(this).css(\"background-color\",\"#E6F6FF\"); return false;") |
|
|
|
.attr("ondragover", "$(this).css(\"background-color\",\"\"); return false;") |
|
|
|
.attr("ondragover", "$(this).css(\"background-color\",\"#C3E9FF\"); return false;") |
|
|
|
.attr("ondrop", "$(this).css(\"background-color\",\"\"); return onDropTarget(this,event);") |
|
|
|
.attr("ondrop", "$(this).css(\"background-color\",\"#E6F6FF\"); return onDropTarget(this,event);") |
|
|
|
.removeClass("red_cont") |
|
|
|
.removeClass("red_cont") |
|
|
|
.removeClass("green_cont") |
|
|
|
.removeClass("green_cont") |
|
|
|
.addClass("def_cont") |
|
|
|
.addClass("def_cont") |
|
|
|