From 4acdfa14b2e9ff5c44d0b3cc5f8424efd0c758e4 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 16 Sep 2015 01:49:08 -0400 Subject: Controlgroup: Address review comments --- demos/controlgroup/toolbar.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'demos/controlgroup') diff --git a/demos/controlgroup/toolbar.html b/demos/controlgroup/toolbar.html index 8afd38b23..d68d834b5 100644 --- a/demos/controlgroup/toolbar.html +++ b/demos/controlgroup/toolbar.html @@ -73,15 +73,16 @@ $( "#zoom" ).on( "selectmenuchange", function() { page.css({ "zoom": $( this ).val() }); }) - $( basicControls.concat( valueControls ).join( ", " ) ).on( "click change selectmenuchange", function() { + $( basicControls.concat( valueControls ).join( ", " ) ).on( "click change selectmenuchange", + function() { document.execCommand( this.id, false, $( this ).val() ); - }); + } ); $( "form" ).on( "submit", function( event ) { - return false; + event.preventDefault(); }); @@ -92,7 +93,7 @@ - + -- cgit v1.2.3