笔记信息, 历史记录, 提示, 附件优化

https://github.com/leanote/leanote/issues/224
This commit is contained in:
lealife committed 2015-10-10 16:10:54 +08:00
1 parent 274875c6c4
commit 320263eefa
58 files changed
+2078 -5398

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
/**
* @file 提示帮助
* @author life
*
*/
define('tips', [], function() {
var tpl = ['<div class="modal fade bs-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">',
'<div class="modal-dialog modal-sm">',
'<div class="modal-content">',
'<div class="modal-header">',
'<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>',
'<h4 class="modal-title" class="modalTitle">' + getMsg('editorTips') + '</h4>',
'</div>',
'<div class="modal-body">' + getMsg('editorTipsInfo') + '</div>',
'<div class="modal-footer">',
'<button type="button" class="btn btn-default" data-dismiss="modal">' + getMsg('close') + '</button>',
'</div>',
'</div>',
'</div>',
'</div>'].join('');
var $tpl = $(tpl);
var view = {
init: function () {
$("#tipsBtn").click(function() {
$tpl.modal({show: true});
});
}
};
view.init();
});