mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix lint.
This commit is contained in:
parent
f08b1948a3
commit
73f24cb732
@ -154,7 +154,7 @@ define([
|
||||
};
|
||||
metadataMgr.onChangeLazy(updateMaxWidthSettings);
|
||||
updateMaxWidthSettings();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Wraps a text based on column set by user in setting.
|
||||
@ -555,11 +555,11 @@ define([
|
||||
|
||||
exp.mkMaxWidthSettings = function (metadataMgr) {
|
||||
module.mkMaxWidthSettings(editor, metadataMgr);
|
||||
}
|
||||
};
|
||||
|
||||
exp.wrapParagraph = function (CodeMirror, metadataMgr) {
|
||||
module.wrapParagraph(editor, CodeMirror, metadataMgr);
|
||||
}
|
||||
};
|
||||
|
||||
exp.getCursor = function () {
|
||||
var doc = canonicalize(editor.getValue());
|
||||
@ -647,5 +647,4 @@ define([
|
||||
};
|
||||
|
||||
return module;
|
||||
});
|
||||
|
||||
});
|
||||
@ -1587,7 +1587,7 @@ define([
|
||||
'class': 'cp-sidebarlayout-input-block'
|
||||
}).appendTo($div);
|
||||
|
||||
var $cbox = $(UI.createCheckbox('cp-settings-code-max-width'))
|
||||
var $cbox = $(UI.createCheckbox('cp-settings-code-max-width'));
|
||||
$cbox.appendTo($container);
|
||||
|
||||
var $input = $('<input>', {
|
||||
@ -1607,13 +1607,13 @@ define([
|
||||
$input.attr('disabled', !this.checked);
|
||||
common.setAttribute(['codemirror', hardWrapMaxWidthEnabledKey], this.checked);
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
common.getAttribute(['codemirror', hardWrapMaxWidthEnabledKey], function (e, val) {
|
||||
if (e) { return void console.error(e); }
|
||||
$cbox.find('input').prop("checked", val);
|
||||
$input.attr("disabled", !val);
|
||||
})
|
||||
});
|
||||
|
||||
common.getAttribute(['codemirror', key], function (e, val) {
|
||||
if (e) { return void console.error(e); }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user