Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

fixing appointments made by jshint #1420

Merged
merged 1 commit into from
Feb 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions source/assets/javascripts/locastyle/_sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ locastyle.sidebars = (function() {
evt.preventDefault();

if ($(this).parents('.ls-submenu-parent').hasClass('ls-active')) {
closeSubmenu( $(this) )
closeSubmenu( $(this) );
} else {
openSubmenu( $(this) )
openSubmenu( $(this) );
}

});
Expand All @@ -91,18 +91,18 @@ locastyle.sidebars = (function() {
function openSubmenu(el) {
var $submenu = $(el).parents('.ls-submenu-parent');

$('.ls-submenu-parent').removeClass('ls-active')
$('.ls-submenu-parent').removeClass('ls-active');
$submenu.addClass('ls-active');

ariaSubmenu($submenu);
}

// Close Submenu
function closeSubmenu(el) {
var $submenu = $(el).parents('.ls-submenu-parent');

$submenu.removeClass('ls-active');

ariaSubmenu($submenu);
}

Expand Down Expand Up @@ -135,7 +135,7 @@ locastyle.sidebars = (function() {
// If user click anywhere in page, close the submenu when sidebar is Toggled.
function clickAnywhereCloseSubmenu() {
$(document).on('click', function(evt){
var target = $(evt.target)
var target = $(evt.target);
if($('.ls-sidebar-toggled').length && $('.ls-submenu-parent.ls-active').length) {
if(!target.is('.ls-submenu-parent.ls-active *')) {
closeSubmenu( $('.ls-submenu-parent.ls-active > a') );
Expand Down
2 changes: 1 addition & 1 deletion source/assets/javascripts/locastyle/_tabs-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ locastyle.button = (function() {
$("[data-ls-module=button]").on("click.button", function(evt) {
evt.preventDefault();
var $target = $($(this).attr("href") || $(this).data("target"));
var $buttons = '[data-ls-module=button]'
var $buttons = '[data-ls-module=button]';
deactivateElement(this, $target, $buttons);
activateElement(this, $target);
});
Expand Down