-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
109 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,46 @@ | ||
(function( $ ) { | ||
'use strict'; | ||
(function ($) { | ||
'use strict'; | ||
|
||
/** | ||
* All of the code for your admin-facing JavaScript source | ||
* should reside in this file. | ||
* | ||
* Note: It has been assumed you will write jQuery code here, so the | ||
* $ function reference has been prepared for usage within the scope | ||
* of this function. | ||
* | ||
* This enables you to define handlers, for when the DOM is ready: | ||
* | ||
* $(function() { | ||
* | ||
* }); | ||
* | ||
* When the window is loaded: | ||
* | ||
* $( window ).load(function() { | ||
* | ||
* }); | ||
* | ||
* ...and/or other possibilities. | ||
* | ||
* Ideally, it is not considered best practise to attach more than a | ||
* single DOM-ready or window-load handler for a particular page. | ||
* Although scripts in the WordPress core, Plugins and Themes may be | ||
* practising this, we should strive to set a better example in our own work. | ||
*/ | ||
/** | ||
* All of the code for your admin-facing JavaScript source | ||
* should reside in this file. | ||
* | ||
* Note: It has been assumed you will write jQuery code here, so the | ||
* $ function reference has been prepared for usage within the scope | ||
* of this function. | ||
* | ||
* This enables you to define handlers, for when the DOM is ready: | ||
* | ||
* $(function() { | ||
* | ||
* }); | ||
* | ||
* When the window is loaded: | ||
* | ||
* $( window ).load(function() { | ||
* | ||
* }); | ||
* | ||
* ...and/or other possibilities. | ||
* | ||
* Ideally, it is not considered best practise to attach more than a | ||
* single DOM-ready or window-load handler for a particular page. | ||
* Although scripts in the WordPress core, Plugins and Themes may be | ||
* practising this, we should strive to set a better example in our own work. | ||
*/ | ||
|
||
$( window ).load(function() { | ||
$('#nf-drawer-content').on('DOMSubtreeModified', function(){ | ||
$("input#fathom_analytics").prop("readonly", true); | ||
}); | ||
}); | ||
})( jQuery ); | ||
$(window).load(function () { | ||
$('#nf-drawer-content').on('DOMSubtreeModified', function () { | ||
$("input#fathom_analytics").prop("readonly", true); | ||
}); | ||
}); | ||
|
||
$(function () { | ||
let _site_id = $('#fac4wp-options_fac-site-id'); | ||
$('.installed_tc_elsewhere input').on('change', function () { | ||
if (this.checked) { | ||
_site_id.prop('readonly', false); | ||
} else _site_id.prop('readonly', true); | ||
}); | ||
}); | ||
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters