|
|
@ -58,6 +58,7 @@ function start(){ |
|
|
|
$("#wgt_display, #wgt_edit").click(function(event){ |
|
|
|
$("#wgt_display, #wgt_edit").click(function(event){ |
|
|
|
if(this.id == "wgt_display"){ |
|
|
|
if(this.id == "wgt_display"){ |
|
|
|
if(!$(this).hasClass("selected")){ |
|
|
|
if(!$(this).hasClass("selected")){ |
|
|
|
|
|
|
|
if(window.sankore) |
|
|
|
sankore.enableDropOnWidget(false); |
|
|
|
sankore.enableDropOnWidget(false); |
|
|
|
$(this).addClass("selected"); |
|
|
|
$(this).addClass("selected"); |
|
|
|
$("#wgt_edit").removeClass("selected"); |
|
|
|
$("#wgt_edit").removeClass("selected"); |
|
|
@ -104,6 +105,7 @@ function start(){ |
|
|
|
} |
|
|
|
} |
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if(!$(this).hasClass("selected")){ |
|
|
|
if(!$(this).hasClass("selected")){ |
|
|
|
|
|
|
|
if(window.sankore) |
|
|
|
sankore.enableDropOnWidget(true); |
|
|
|
sankore.enableDropOnWidget(true); |
|
|
|
$(this).addClass("selected"); |
|
|
|
$(this).addClass("selected"); |
|
|
|
$("#wgt_display").removeClass("selected"); |
|
|
|
$("#wgt_display").removeClass("selected"); |
|
|
@ -212,12 +214,17 @@ function exportData(){ |
|
|
|
cont_obj.tmp = "clear"; |
|
|
|
cont_obj.tmp = "clear"; |
|
|
|
array_to_export.push(cont_obj); |
|
|
|
array_to_export.push(cont_obj); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(window.sankore) |
|
|
|
sankore.setPreference("odr_des_imgs", JSON.stringify(array_to_export)); |
|
|
|
sankore.setPreference("odr_des_imgs", JSON.stringify(array_to_export)); |
|
|
|
if($("#wgt_display").hasClass("selected")) |
|
|
|
if($("#wgt_display").hasClass("selected")){ |
|
|
|
|
|
|
|
if(window.sankore) |
|
|
|
sankore.setPreference("odr_des_imgs_state", "display"); |
|
|
|
sankore.setPreference("odr_des_imgs_state", "display"); |
|
|
|
else |
|
|
|
} |
|
|
|
|
|
|
|
else{ |
|
|
|
|
|
|
|
if(window.sankore) |
|
|
|
sankore.setPreference("odr_des_imgs_state", "edit"); |
|
|
|
sankore.setPreference("odr_des_imgs_state", "edit"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//import
|
|
|
|
//import
|
|
|
|
function importData(data){ |
|
|
|
function importData(data){ |
|
|
|