Skip to content

Commit

Permalink
Allow clicks on hallolink dialog when currently_editing. See CAC #3217
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed May 22, 2014
1 parent decd320 commit d5b9f22
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/js/cacap.js
Expand Up @@ -479,9 +479,7 @@ window.wp = window.wp || {};
jcw_id = '';
}

// Don't let users click away from the currently_editing field
// Special exception for autocomplete
if ( currently_editing.length && jcw_id !== currently_editing && ! $jcw_target.closest( '.ui-autocomplete' ).length ) {
if ( currently_editing.length && jcw_id !== currently_editing && ! $jcw_target.closest( '.ui-autocomplete' ).length && ! $jcw_target.closest( '.hallolink-dialog' ).length ) {
$currently_editing = $( '#' + currently_editing );

// Offset for the header
Expand Down

0 comments on commit d5b9f22

Please sign in to comment.