slim scroll
This commit is contained in:
@ -950,6 +950,9 @@ Note.setNoteCache(noteContentJson);
|
|||||||
Note.renderNoteContent(noteContentJson)
|
Note.renderNoteContent(noteContentJson)
|
||||||
|
|
||||||
Tag.renderTagNav(tagsJson);
|
Tag.renderTagNav(tagsJson);
|
||||||
|
|
||||||
|
// init notebook后才调用
|
||||||
|
initSlimScroll();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- mdEditor -->
|
<!-- mdEditor -->
|
||||||
|
@ -950,6 +950,9 @@ Note.setNoteCache(noteContentJson);
|
|||||||
Note.renderNoteContent(noteContentJson)
|
Note.renderNoteContent(noteContentJson)
|
||||||
|
|
||||||
Tag.renderTagNav(tagsJson);
|
Tag.renderTagNav(tagsJson);
|
||||||
|
|
||||||
|
// init notebook后才调用
|
||||||
|
initSlimScroll();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- mdEditor -->
|
<!-- mdEditor -->
|
||||||
|
2
public/js/app/page-min.js
vendored
2
public/js/app/page-min.js
vendored
File diff suppressed because one or more lines are too long
@ -666,7 +666,17 @@ $(function() {
|
|||||||
|
|
||||||
// slimScroll
|
// slimScroll
|
||||||
//---
|
//---
|
||||||
|
/*
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
initSlimScroll();
|
||||||
|
}, 10);
|
||||||
|
*/
|
||||||
|
|
||||||
|
// 编辑器模式
|
||||||
|
em.init();
|
||||||
|
});
|
||||||
|
|
||||||
|
function initSlimScroll() {
|
||||||
$("#notebook").slimScroll({
|
$("#notebook").slimScroll({
|
||||||
height: "100%", // $("#leftNotebook").height()+"px"
|
height: "100%", // $("#leftNotebook").height()+"px"
|
||||||
});
|
});
|
||||||
@ -683,11 +693,7 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("#wmd-panel-preview").css("width", "100%");
|
$("#wmd-panel-preview").css("width", "100%");
|
||||||
}, 10);
|
}
|
||||||
|
|
||||||
// 编辑器模式
|
|
||||||
em.init();
|
|
||||||
});
|
|
||||||
|
|
||||||
// 编辑器模式
|
// 编辑器模式
|
||||||
function editorMode() {
|
function editorMode() {
|
||||||
|
Reference in New Issue
Block a user