Skip to content

Commit

Permalink
Merge pull request #54 from stockholmux/master
Browse files Browse the repository at this point in the history
Fixed issue with event handlers in smkPanel causing open/close issue.

Thanks for the help @stockholmux
  • Loading branch information
alfredobarron committed May 19, 2015
2 parents 3243220 + ae4b6b8 commit 3f3cda6
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 3f3cda6

Please sign in to comment.