Created
October 13, 2015 20:02
-
-
Save puiutucutu/940091350f7b69442581 to your computer and use it in GitHub Desktop.
jquery iife
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
'use strict'; | |
var dismiss = '[data-dismiss="alert"]' | |
var Alert = function (el) { | |
$(el).on('click', dismiss, this.close) | |
var $parent = $(this).closest('.alert') | |
$parent.removeClass('in') | |
} | |
$(document).on('click', dismiss, Alert) | |
})(jQuery); |
Author
puiutucutu
commented
Oct 13, 2015
selectmenuWidgetId.find('option').length > 0 ? selectmenuWidgetId.selectmenu('refresh')
: selectmenuWidgetId.selectmenu('disable');
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment