Skip to content

Commit

Permalink
JS bug fixes for admin side
Browse files Browse the repository at this point in the history
  • Loading branch information
jegelstaff committed Oct 13, 2024
1 parent 0b08732 commit 42dfcc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/formulize/admin/fakeform.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ function noaction() {
<script>
".checkForChrome()."
jQuery(document).ready(function() {
jQuery('div.form-row').on('hover', function() {
jQuery('#element-edit-controls').css('top', jQuery(this).position().top + parseInt(jQuery(this).css('margin-top')) + 'px');
Expand Down
2 changes: 1 addition & 1 deletion modules/formulize/templates/admin/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ <h1><{$adminPage.pagetitle}> <span class="smallhead"><{$adminPage.pagesubtitle}>

$(document).ready(
$('.code-textarea').each(function() {
if (this.type !== 'textarea' || SELENIUM_DEBUG == 'ON') {
if (this.type !== 'textarea') {
return true; // continue
}
CodeMirror.fromTextArea(this, {
Expand Down

0 comments on commit 42dfcc4

Please sign in to comment.