Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Last part -- enable / disable navigation buttons when FT editor box is selected / blurred.
  • Loading branch information
eb1 committed Sep 23, 2024
1 parent cf75f73 commit 80e9b66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions www/js/views/AdaptViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -4878,6 +4878,9 @@ define(function (require) {
lastOffset = top;
// add the FT text
$("#fteditor").html(strFT.trim());
// enable prev / next buttons
$("#PrevSP").prop('disabled', false); // enable toolbar button
$("#NextSP").prop('disabled', false); // enable toolbar button
},

// user pressed a key in the Free Translation edit field
Expand Down Expand Up @@ -5021,6 +5024,10 @@ define(function (require) {
} else if (document.selection) { // IE?
document.selection.empty();
}
// disable prev / next buttons
$("#PrevSP").prop('disabled', true); // disable toolbar button
$("#NextSP").prop('disabled', true); // disable toolbar button

},

// User clicked on the grow Free Translation button
Expand Down

0 comments on commit 80e9b66

Please sign in to comment.