Skip to content

Commit

Permalink
fixes #1210
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Dec 18, 2016
1 parent cf16ccb commit b6ce7a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"Color": false,
"wpColorPickerL10n": false,
"kirkiIcons": false,
"fieldDependencies": false
"fieldDependencies": false,
"kirkiResetButtonLabel": false
}
}
2 changes: 1 addition & 1 deletion modules/reset/class-kirki-modules-reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function customize_controls_enqueue_scripts() {
// Enqueue the reset script.
wp_enqueue_script( 'kirki-set-setting-value', trailingslashit( Kirki::$url ) . 'modules/reset/set-setting-value.js', array( 'jquery', 'customize-base', 'customize-controls' ) );
wp_enqueue_script( 'kirki-reset', trailingslashit( Kirki::$url ) . 'modules/reset/reset.js', array( 'jquery', 'customize-base', 'customize-controls', 'kirki-set-setting-value' ) );
wp_localize_script( 'kirki-reset', 'kirkiL10n', $translation_strings );
wp_localize_script( 'kirki-reset', 'kirkiResetButtonLabel', $translation_strings );
wp_enqueue_style( 'kirki-reset', trailingslashit( Kirki::$url ) . 'modules/reset/reset.css', null );

}
Expand Down
2 changes: 1 addition & 1 deletion modules/reset/reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jQuery( document ).ready( function() {

wp.customize.section.each( function( section ) {

var link = '<a href="#" class="kirki-reset-section" data-reset-section-id="' + section.id + '">' + kirkiL10n['reset-with-icon'] + '</a>';
var link = '<a href="#" class="kirki-reset-section" data-reset-section-id="' + section.id + '">' + kirkiResetButtonLabel['reset-with-icon'] + '</a>';

jQuery( link ).appendTo( '#sub-accordion-section-' + section.id + ' .customize-section-title > h3' );

Expand Down

0 comments on commit b6ce7a9

Please sign in to comment.