Fixed JS warning. Fixed task for move from continue to save

This commit is contained in:
Djamil Legato
2015-08-21 10:11:19 -07:00
parent 84d4e88b37
commit cb0e8e98c2
2 changed files with 3 additions and 2 deletions

View File

@@ -296,8 +296,9 @@ $(function(){
var route = jQuery('form#blueprints').first().find('select[name="route"]'),
value = $('[data-page-move] select').val();
if (route.length && route.val() !== value) {
var selectize = route.data('selectize');
route.val(value);
route.data('selectize').setValue(value);
if (selectize) selectize.setValue(value);
}
});
});

View File

@@ -12,6 +12,6 @@
<div class="button-bar">
<a class="button secondary remodal-cancel" href="#"><i class="fa fa-fw fa-close"></i> {{ "PLUGIN_ADMIN.CANCEL"|tu }}</a>
<button class="button primary" name="task" value="continue" form="blueprints">{{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
<button class="button primary" name="task" value="save" form="blueprints">{{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
</div>
</form>