summaryrefslogtreecommitdiff
path: root/public/views
diff options
context:
space:
mode:
authorWu Cheng-Han2015-07-16 22:46:06 +0800
committerWu Cheng-Han2015-07-16 22:46:06 +0800
commitd14c5bdc9cabf632262067466ef02374cee496cd (patch)
tree63baaaa8c0205f55cb30f7e353e0727f14543851 /public/views
parent57253d28a7ad2037ba4d5da69d69f653e651c49b (diff)
Added document max length limit, enforceMaxLength on change and show modal when reach the limit.
Diffstat (limited to 'public/views')
-rw-r--r--public/views/body.ejs19
1 files changed, 19 insertions, 0 deletions
diff --git a/public/views/body.ejs b/public/views/body.ejs
index 1367d9f9..d67267bb 100644
--- a/public/views/body.ejs
+++ b/public/views/body.ejs
@@ -110,4 +110,23 @@
</div>
</div>
</div>
+</div>
+<!-- limit modal -->
+<div class="modal fade limit-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" 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-label="Close"><span aria-hidden="true">&times;</span>
+ </button>
+ <h4 class="modal-title" id="myModalLabel"><i class="fa fa-exclamation-triangle"></i> Reach the limit</h4>
+ </div>
+ <div class="modal-body" style="color:black;">
+ <h5>Sorry, you've reached the max length this note can be.</h5>
+ <strong>Please reduce the content or divided it to more notes, thank you!</strong>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-warning" data-dismiss="modal">OK</button>
+ </div>
+ </div>
+ </div>
</div> \ No newline at end of file