Default.aspx [Dynamic]
First break:
$('.blockEditor[containerId="212"]').draggable({opacity: 0.7, revert: true, scroll: true} )
.droppable({
accept:'.blockEditor[containerId="212"]',
over: function(ev,ui) {
$(this).addClass( parseInt($(this).attr('index')) < parseInt($(ui.draggable).attr('index')) ? 'upline' : 'underline');},
out: function(ev,ui) {
$(this).removeClass('upline').removeClass('underline');},
drop:function(ev,ui) {
//alert($(ui.draggable).attr('index') + ':' + $(this).attr('index'));
$('#ctl00_masterContainerTop_hidMoveInfo212').val($(ui.draggable).attr('blockId') + ':' + $(this).attr('blockId'));
$('#ctl00_masterContainerTop_btnPostBackButton212').click();
}
}).hide().show();
Second break:
function showDialog(title, width, height, url) {
$('#dialogEditBlock').removeClass('Hidden').dialog(
{modal: true,
title: title,
width: width,
height: height,
overlay: { opacity: 0.5, background: 'black' },
resize: function(event, ui) { $("#ifmEditBlock").contents().find(".fckeditorTextArea").height($(this).height()); },
buttons: { 'Ok': function() { window.frames.ifmEditBlock.Update(); },
'Cancel': function() { $(this).dialog('close'); } }
});
$('#ifmEditBlock').attr('src', url);
|