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
// Confirmation modal on elements that have 'confirm' class. | |
// Will launch a modal and ask for confirmation. | |
// data-confirm-action="confirm" - Will enable the confirm modal | |
// data-confirm-title="" - Custom title, optional | |
// data-confirm-text="" - Custom modal text, optional. | |
;(function ( $, window, document, undefined ) { | |
// Create the defaults once | |
var pluginName = "confirmAction", | |
defaults = { |
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
/* | |
Based on: http://stackoverflow.com/a/878331 | |
Filter child select from selected parent select option. | |
Will look for parent (options) value in child data-parent"XX". | |
<select id="parent"> | |
<option value="1">Group 1</option> | |
<option value="2">Group 2</option> |
NewerOlder