FEATURE: add page ordering

This commit is contained in:
Michal Kváček
2017-09-13 14:02:07 +02:00
parent d90ca08ba6
commit 3fdae2669b
13 changed files with 293 additions and 215 deletions
+11 -3
View File
@@ -386,9 +386,9 @@ $ (document).ready (function () {
$ ('#confirm-button').attr ('href', href);
} else if (tag === 'BUTTON') {
var form = $(this).closest('form');
var form = $ (this).closest ('form');
$ ('#confirm-button').click (function () {
form.submit();
form.submit ();
})
}
@@ -461,4 +461,12 @@ $ ('.checkbox').change (function () {
var parent = e.data ('parent');
$ ('#checkbox-parent-' + parent).prop ('checked', true);
}
});
});
$ ('.has-subpages').click (function (e) {
if (!$ (e.target).is ("div"))
return;
var id = $ (this).data ('id');
$ ('.parent-page-' + id).toggleClass ('hidden-xs-up');
})