Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ module.exports = function( grunt ) {
dist: {
files : {
'js/build/shortcode-ui.js' : ['js/src/shortcode-ui.js'],
'js/build/field-attachment.js' : ['js/src/field-attachment.js'],
'js/build/field-color.js' : ['js/src/field-color.js'],
'js/build/field-post-select.js' : ['js/src/field-post-select.js'],
},
Expand Down
6 changes: 1 addition & 5 deletions inc/fields/class-field-attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ public function filter_shortcode_ui_fields( $fields ) {

public function action_enqueue_shortcode_ui() {

$script = plugins_url( 'js/build/field-attachment.js', dirname( dirname( __FILE__ ) ) );

wp_enqueue_script( 'shortcake-field-attachment', $script, array( 'shortcode-ui' ) );

wp_localize_script( 'shortcake-field-attachment', 'ShortcakeImageFieldData', array(
wp_localize_script( 'shortcode-ui', 'ShortcakeImageFieldData', array(
'defaultArgs' => array(
'libraryType' => null, // array of mime types. eg image, image/jpg, application, application/pdf.
'addButton' => __( 'Select Attachment', 'shortcode-ui' ),
Expand Down
6 changes: 3 additions & 3 deletions js-tests/build/specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ var ShortcodeAttributes = Backbone.Collection.extend({
return new this.constructor(_.map(this.models, function(m) {
return m.clone();
}));
}
},

});

module.exports = ShortcodeAttributes;
Expand Down Expand Up @@ -477,8 +478,7 @@ Shortcode = Backbone.Model.extend({

return template;

}

},
});

module.exports = Shortcode;
Expand Down
Loading