Does not work with latest version of Shortcake
-
Hi there,
Love the plugin, however it didnt work with the latest version of shortcake. It was a simple fix however. In the file:
/admin/partials/tmpl-shortcode-ui-field-chosen.tpl.php
You can change the way the data is looped to the following:
<select name="{{ data.attr }}" id="{{ data.id }}" {{{ data.meta }}} class="chosen-enhance"> <# _.each( data.options, function( option ) { #> <option value="{{ option['value'] }}" <# if ( option['value'] == data.value ){ print('selected'); } #>>{{ option['label'] }}</option> <# }); #> </select>
That fixes the issue.
If you have a GitHub repo for this, I will happily submit a patch, or I can create an SVN diff if you prefer?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Does not work with latest version of Shortcake’ is closed to new replies.