From e40fd00e0bc55e91b75e2c1ad9d7c95064985025 Mon Sep 17 00:00:00 2001 From: Matt Gerstman Date: Sun, 28 Sep 2014 14:22:09 -0700 Subject: [PATCH] Added feature to modify the save button's class On my app I wanted to use a primary button, not a success button so I modified this to accept a parameter of a class for the save button --- js/bootstrap-markdown.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/bootstrap-markdown.js b/js/bootstrap-markdown.js index d9a7b76..dfd8b0e 100644 --- a/js/bootstrap-markdown.js +++ b/js/bootstrap-markdown.js @@ -310,12 +310,18 @@ if (options.savable) { createFooter = true; var saveHandler = 'cmdSave' + var saveButtonClass = "btn btn-success" + if (options.saveButtonClass) { + saveButtonClass = options.saveButtonClass; + } // Register handler and callback handler.push(saveHandler) callback.push(options.onSave) - editorFooter.append('