diff --git a/README.md b/README.md
index 9ffc25a..e65cd25 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,6 @@ Idle time is defined as no mouse, keyboard or touch event activity registered by
As long as the user is active, the (optional) keep-alive URL keeps getting pinged and the session stays alive. If you have no need to keep the server-side session alive via the keep-alive URL, you can also use this plugin as a simple lock mechanism that redirects to your lock-session or log-out URL after a set amount of idle time.
-
## Getting Started
1. Download or git clone.
@@ -20,8 +19,6 @@ As long as the user is active, the (optional) keep-alive URL keeps getting pinge
3. Include `bootstrap-session-timeout.js` or the minified version `bootstrap-session-timeout.min.js`
4. Call `$.sessionTimeout();` on document ready. See available options below or take a look at the examples.
-
-
## Documentation
### Options
**title**
@@ -169,7 +166,6 @@ Default: `false`
Optional callback fired when first calling the plugin and every time user refreshes the session (on any mouse, keyboard or touch action). Takes options object as the only argument.
-
**onWarn**
Type: `Function` or `Boolean`
@@ -188,11 +184,18 @@ Default: `false`
Custom callback you can use instead of redirecting the user to `redirUrl`. Takes options object as the only argument.
+**hideButtons**
+
+Type: `Boolean`
+
+Default: `false`
+
+Disable action buttons
+
## Examples
You can play around with the examples in the `/examples` directory.
-
**Basic Usage**
Shows the warning dialog after one minute. The dialog is visible for another minute. If user takes no action (interacts with the page in any way), browser is redirected to `redirUrl`. On any user action (mouse, keyboard or touch) the timeout timer is reset. Of course, you will still need to close the dialog.
@@ -264,7 +267,7 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
* Fixes various reported bugs
* **1.0.2** `2015-02-10`
* Added optional onStart callback.
- * All custom callbacks nowreceive options object as argument.
+ * All custom callbacks nowreceive options object as argument.
* Added optional countdown message. Added optional countdown bar.
* **1.0.1** `2014-01-23`
* Added an option to send data to the keep-alive URL.
diff --git a/dist/bootstrap-session-timeout.js b/dist/bootstrap-session-timeout.js
index 1d65189..f60d369 100644
--- a/dist/bootstrap-session-timeout.js
+++ b/dist/bootstrap-session-timeout.js
@@ -30,7 +30,8 @@
onRedir: false,
countdownMessage: false,
countdownBar: false,
- countdownSmart: false
+ countdownSmart: false,
+ hideButtons: false
};
var opt = defaults,
@@ -61,25 +62,31 @@
' : '';
// Create timeout warning dialog
- $('body').append('