Skip to content

Commit

Permalink
Fixed Label
Browse files Browse the repository at this point in the history
  • Loading branch information
Simpsonight committed Mar 7, 2016
1 parent 7247303 commit 8be02a5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions bra_module-widget.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* bra_module-widget.js v2.2.0
* bra_module-widget.js v2.2.1
* https://github.com/brandung/bra_module-widget
*
* Insert widget in _modules.html
Expand Down Expand Up @@ -57,13 +57,12 @@
// get deep links
_.getDeepLinks();
// bind draggable event
_.draggable();
//_.draggable();
// check if only one component should been showed
_.showComponent();


};


/**
* Show only single component
*
Expand Down Expand Up @@ -197,9 +196,9 @@
*/
_.slideToggle = function () {
if (self.settings.widget.find('.mw-open').hasClass('is-active')) {
$(self.settings.mwContainer).slideDown();
$('#' + self.settings.widgetName).addClass('is-open');
} else {
$(self.settings.mwContainer).slideUp();
$('#' + self.settings.widgetName).removeClass('is-open');
}
};

Expand Down Expand Up @@ -303,12 +302,15 @@
*/
_.handleBreakpointChange = function () {
if(Capitan.Function.assertBreakpoint('lt', 'md')) {
self.settings.widget.hide();
//self.settings.widget.hide();
$('#' + self.settings.widgetName).addClass('is-mobile');
} else {
self.settings.widget.show();
//self.settings.widget.show();
$('#' + self.settings.widgetName).removeClass('is-mobile');
}
};


/**
* Get URL parameter value
*
Expand Down

0 comments on commit 8be02a5

Please sign in to comment.