From f6e38febe9841d02ff2dbaab705a4c29284368a8 Mon Sep 17 00:00:00 2001 From: CupCakeArmy <nicco.borgioli@gmail.com> Date: Mon, 25 Apr 2016 16:20:01 +0200 Subject: [PATCH] tools.modalClose added --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7125ce9..65d6a35 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ The JS library ```tools``` is the backbone of the single tools. It enables the t * ``` tools.log('Error!', 'e', 10000); ``` Creates a gred alert box with the message specified that will disappear after 10s. ### modal(data) -###### Spwans a BS modal. +###### Spwans a BS modal. To close a modal without a button just call ```tools.modalClose()``` * ```data /js object``` Object containning the infos * ```head /text, HTML (optional)``` Sets the modal title. * ```body /text, HTML (optional)``` Sets the modal body. @@ -58,7 +58,7 @@ The JS library ```tools``` is the backbone of the single tools. It enables the t * warning * danger * link - * ```close /bool (optional)``` Close modal on click + * ```close /bool (optional)``` Close modal on click * ```callback /function (optional)``` Callback for the button * ```cancel /function (optional)``` Function called on cancel or modal is closed. -- GitLab