$render=explode(" ", $_POST["partial_render"]);
if($_POST["board_widgetId"]=="sports"){
$item="Esporte";
}
if($_POST["board_widgetId"]=="finance"){
$item="Finança";
}
if($_POST["board_widgetId"]=="lifestyle"){
$item="Estilo de Vida";
}
if($_POST["board_widgetId"]=="weather"){
$item="Clima";
}
if($_POST["board_widgetId"]=="politics"){
$item="Política";
}
$resposta="
<span id="alerta" class="ui-growl-pl" data-widget="widget_alerta" data-summary="data-summary" data-detail="data-detail" data-severity="all,error" data-redisplay="true"></span>
<script id="alerta_s" type="text/javascript">
DinarteCoelho.cw("Growl", "widget_alerta", {
id: "alerta",
sticky: false,
life: 6000,
escape: true,
keepAlive: false,
msgs: [{
summary: "Reordenado: ".$item."",
detail: "Item indexado: ".$_POST["board_itemIndex"].", Coluna indexada: ".$_POST["board_receiverColumnIndex"].", Índice remetente: ".$_POST["board_senderColumnIndex"]."",
severity: "info",
severityText: "Information"
}]
});
</script>
";
dc.cw("Growl", "widget_alerta", {
id: "alerta"
, sticky: false
, life: 6000
, escape: true
, keepAlive: false
, msgs: []
});
dc.cw("Panel", "widget_sports", {
id: "sports"
});
dc.cw("Panel", "widget_finance", {
id: "finance"
});
dc.cw("Panel", "widget_lifestyle", {
id: "lifestyle"
});
dc.cw("Panel", "widget_weather", {
id: "weather"
});
dc.cw("Panel", "widget_politics", {
id: "politics"
});
dc.cw("Dashboard", "widget_board", {
id: "board"
, behaviors: {
reorder: function (ext, event) {
dc.ab({
s: "board"
, e: "reorder"
, f: "formulario"
, p: "board"
, u: "alerta"
}, ext);
}
}
});