includes/clientside/sbedit.js
changeset 886 041c86ff16d5
parent 885 a86a69394a95
child 943 6eab82abc952
equal deleted inserted replaced
885:a86a69394a95 886:041c86ff16d5
    54     .css('left', offset.left)
    54     .css('left', offset.left)
    55     .appendTo('body')
    55     .appendTo('body')
    56     .animate({ width: 500, height: 400, top: top, left: (getWidth() / 2) - 250 }, 400, function()
    56     .animate({ width: 500, height: 400, top: top, left: (getWidth() / 2) - 250 }, 400, function()
    57       {
    57       {
    58         var whitey = whiteOutElement(this);
    58         var whitey = whiteOutElement(this);
    59         $(this).append('<textarea style="width: 100%; height: 90%;"></textarea>');
    59         $(this).append('<textarea style="width: 100%; height: 360px;" rows="20" cols="80"></textarea>');
    60         $(this).append('<p style="text-align: center;"><a href="#" onclick="sbedit_edit_save(this); return false;">' + $lang.get('etc_save_changes') + '</a> | <a href="#" onclick="sbedit_edit_cancel(this); return false;">' + $lang.get('etc_cancel') + '</a></p>');
    60         $(this).append('<p style="text-align: center;"><a href="#" onclick="sbedit_edit_save(this); return false;">' + $lang.get('etc_save_changes') + '</a> | <a href="#" onclick="sbedit_edit_cancel(this); return false;">' + $lang.get('etc_cancel') + '</a></p>');
    61         $.get(makeUrlNS('Special', 'EditSidebar', 'action=getsource&noheaders&id=' + this.item_id), {}, function(response, statustext)
    61         $.get(makeUrlNS('Special', 'EditSidebar', 'action=getsource&noheaders&id=' + this.item_id), {}, function(response, statustext)
    62           {
    62           {
    63             $('textarea', box).attr('value', response);
    63             $('textarea', box).attr('value', response);
    64             $(whitey).remove();
    64             $(whitey).remove();