Remove public keyword from some JS functions. Sorry.
Props ocean90. See #22234. Built from https://develop.svn.wordpress.org/trunk@28483 git-svn-id: http://core.svn.wordpress.org/trunk@28309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
68cfacf9ec
commit
6a765cdd03
|
@ -352,13 +352,13 @@ class Custom_Image_Header {
|
|||
var default_color = '<?php echo $default_color; ?>',
|
||||
header_text_fields;
|
||||
|
||||
public function pickColor(color) {
|
||||
function pickColor(color) {
|
||||
$('#name').css('color', color);
|
||||
$('#desc').css('color', color);
|
||||
$('#text-color').val(color);
|
||||
}
|
||||
|
||||
public function toggle_text() {
|
||||
function toggle_text() {
|
||||
var checked = $('#display-header-text').prop('checked'),
|
||||
text_color;
|
||||
header_text_fields.toggle( checked );
|
||||
|
@ -403,7 +403,7 @@ class Custom_Image_Header {
|
|||
public function js_2() { ?>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
public function onEndCrop( coords ) {
|
||||
function onEndCrop( coords ) {
|
||||
jQuery( '#x1' ).val(coords.x);
|
||||
jQuery( '#y1' ).val(coords.y);
|
||||
jQuery( '#width' ).val(coords.w);
|
||||
|
@ -452,7 +452,7 @@ class Custom_Image_Header {
|
|||
<?php
|
||||
}
|
||||
?>
|
||||
onInit: public function () {
|
||||
onInit: function () {
|
||||
jQuery('#width').val(xinit);
|
||||
jQuery('#height').val(yinit);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue