From: Alexander Egorov Date: Mon, 30 Nov 2015 10:08:46 +0000 (+0300) Subject: Typos in javascript.md X-Git-Tag: v6.0.5~41^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ebb1ffefd5c38cfc2adb29d227b94668b8f654c;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Typos in javascript.md - `change` instead of `changed`, `changed` doesn't work at all - `[data-tabs]` instead of `#tab` better indicates that event handler should be added to `ul.tabs` element --- diff --git a/docs/pages/javascript.md b/docs/pages/javascript.md index 7cc6dbb26..e0465a0f9 100644 --- a/docs/pages/javascript.md +++ b/docs/pages/javascript.md @@ -129,7 +129,7 @@ You can use any jQuery selector you like, and if the selector encompasses multip Every plugin fires DOM events when certain functions finish. For example, you can listen for when tabs change, or an off-canvas menu opens, and create a callback to respond to it. ```js -$('#tab').on('changed.zf.tabs', function() { +$('[data-tabs]').on('change.zf.tabs', function() { console.log('Those tabs sure did change!'); }); ```