PluginProbe
Insert Pages / 3.1
Insert Pages v3.1
3.11.5 trunk 1.4 2.4 2.5 2.6 2.7 2.7.1 2.7.2 2.8 2.9 2.9.1 3.0 3.0.1 3.0.2 3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 All 79 releases
insert-pages / js / widget.js

widget.js in Insert Pages 3.1, at js/widget.js

19 lines 628 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery( document ).ready( function ( $ ) {
2 // Enable/Disable template dropdown based on display choice in widget options.
3 $( document ).on( 'change', '.insertpage-format-select', function() {
4 if ( $( this ).val() == 'template' ) {
5 $( '.insertpage-template-select' ).removeAttr( 'disabled' );
6 if ( $( this ).is( ':focus' ) ) {
7 $( '.insertpage-template-select' ).focus();
8 }
9 } else {
10 $( '.insertpage-template-select' ).attr( 'disabled', 'disabled' );
11 }
12 });
13 $( document ).on( 'widget-updated', function () {
14 $( '.insertpage-format-select' ).change();
15 })
16 $( '.insertpage-format-select' ).change();
17
18 });
19