Skip to content

Commit

Permalink
Ipad: Fix off-canvas close when click on gray area
Browse files Browse the repository at this point in the history
  • Loading branch information
joomlart committed Jan 21, 2014
1 parent 99fe745 commit b7d7fe4
Show file tree
Hide file tree
Showing 5 changed files with 601 additions and 599 deletions.
1 change: 1 addition & 0 deletions source/plg_system_t3/base-bs3/js/jquery.tap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions source/plg_system_t3/base-bs3/js/off-canvas.js
Expand Up @@ -48,7 +48,7 @@ jQuery (document).ready(function($){
}
});

$toggles.click (function(e){
$toggles.on('tap', function(e){
// detect direction

stopBubble (e);
Expand Down Expand Up @@ -98,7 +98,7 @@ jQuery (document).ready(function($){
});
var oc_show = function () {
$wrapper.addClass ('off-canvas-open');
$wrapper.on ('click', oc_hide);
$wrapper.on ('tap', oc_hide);
$close.on ('click', oc_hide);
$offcanvas.on ('click', stopBubble);

Expand All @@ -114,7 +114,7 @@ jQuery (document).ready(function($){

var oc_hide = function () {
$wrapper.removeClass ('off-canvas-open');
$wrapper.off ('click', oc_hide);
$wrapper.off ('tap', oc_hide);
$close.off ('click', oc_hide);
$offcanvas.off ('click', stopBubble);
setTimeout (function (){
Expand Down
1 change: 1 addition & 0 deletions source/plg_system_t3/base/js/jquery.tap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions source/plg_system_t3/includes/core/template.php
Expand Up @@ -905,6 +905,8 @@ function addHead()

// As joomla 3.0 bootstrap is buggy, we will not use it
$this->addScript(T3_URL . '/bootstrap/js/bootstrap.js');
// a jquery tap plugin
$this->addScript(T3_URL . '/js/jquery.tap.min.js');

// add css/js for off-canvas
if ($offcanvas && ($this->responcls || $responsive)) {
Expand Down

0 comments on commit b7d7fe4

Please sign in to comment.