Skip to content

Commit

Permalink
Fixed issue with event handlers in smkPanel causing open/close issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stockholmux committed May 19, 2015
1 parent 3243220 commit ae4b6b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/js/smoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ $.fn.smkPanel = function(options) {
var settings = $.extend({
hide: ''
}, options);

var thisPanel = $(this);
// Se eliminan los espacios en blanco de la variable settings.hide
var hideSinEspacios = settings.hide.replace(/\s/g, '');
// Se quiebra la variable hideSinEspacios para obtener sus valores y se agregan en el array arrayHide
Expand Down Expand Up @@ -1201,7 +1201,7 @@ $.fn.smkPanel = function(options) {
$(this).children('.panel-heading').append( btnGroup );

// Evento del boton Min
$('.smk-min').click(function(event) {
thisPanel.find('.smk-min').click(function(event) {
event.preventDefault();
var body = $(this).parents('.panel-heading').siblings('.panel-body');
var footer = $(this).parents('.panel-heading').siblings('.panel-footer');
Expand All @@ -1213,15 +1213,15 @@ $.fn.smkPanel = function(options) {

});
// Evento del boton Remove
$('.smk-remove').click(function(event) {
thisPanel.find('.smk-remove').click(function(event) {
event.preventDefault();
var panel = $(this).parents('.panel');
panel.fadeOut(400, function(){
//this.remove();
});
});
// Evento del boton Full
$('.smk-full').click(function(event) {
thisPanel.find('.smk-full').click(function(event) {
event.preventDefault();
var panel = $(this).parents('.panel');
var body = $(this).parents('.panel-heading').siblings('.panel-body');
Expand Down

0 comments on commit ae4b6b8

Please sign in to comment.