mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-07-21 04:31:56 +02:00
Fixed JS warning. Fixed task for move from continue to save
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user