#se-edit-prefs-dialog unwanted code removed and comment

master
Agriya Dev5 2020-12-10 20:02:38 +05:30
parent f5565c3aaa
commit 4b2a65355c
1 changed files with 2 additions and 22 deletions

View File

@ -2689,26 +2689,6 @@ editor.init = () => {
svgCanvas.bind('extension_added', extAdded);
svgCanvas.textActions.setInputElem($('#text')[0]);
// Set up editor background functionality
/* const colorBlocks = ['#FFF', '#888', '#000', 'chessboard'];
let str = '';
$.each(colorBlocks, function (i, e) {
str += (e === 'chessboard')
// eslint-disable-next-line max-len
? `<div class="color_block" data-bgcolor="${e}" style="background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjGgq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"></div>`
: `<div class="color_block" data-bgcolor="${e}" style="background-color:${e};"></div>`;
});
$('#bg_blocks').append(str);
const blocks = $('#bg_blocks div');
const curBg = 'cur_background';
blocks.each(function () {
const blk = $(this);
blk.click(function () {
blocks.removeClass(curBg);
$(this).addClass(curBg);
});
}); */
setBackground(editor.pref('bkgd_color'), editor.pref('bkgd_url'));
// update resolution option with actual resolution
@ -3793,10 +3773,10 @@ editor.init = () => {
updateToolButtonState();
};
$('#svg_prefs_container').draggable({
/* $('#svg_prefs_container').draggable({
cancel: 'button,fieldset',
containment: 'window'
}).css('position', 'absolute');
}).css('position', 'absolute'); */
let docprops = false;
let preferences = false;