1
0
mirror of /repos/Prototyper.git synced 2025-12-30 06:31:32 +01:00

shorter lines

This commit is contained in:
Aiko Mastboom 2020-03-11 22:57:22 +01:00
parent d67d163c8c
commit e4d06dd7a9

View File

@ -190,16 +190,18 @@
<div class="accordion" id="accordion"
data-bind="sortable: { data:_selectedProject().docs(), afterMove:$root._moveContent}">
<div class="accordion-group">
<a class="nav-pills nav-stacked" data-toggle="collapse"
<a class="nav-pills nav-stacked"
data-toggle="collapse"
data-parent="#accordion"
data-bind="attr: { href: '#collapse' + $index() }">
<span data-bind="text: name, click: $root._loadAttributes($index(), $data)"></span>
</a>
<div data-bind="attr: { id: 'collapse' +$index() }"
<div data-bind="attr: { id: 'collapse' + $index() }"
class="accordion-body collapse">
<div>
<ul class="nav nav-pills nav-stacked" data-bind="sortable: { data:_attributeDocNames(), afterMove:$root._moveAttribute}">
<ul class="nav nav-pills nav-stacked"
data-bind="sortable: { data:_attributeDocNames(), afterMove:$root._moveAttribute}">
<li data-bind="css: { active: $root._isActiveAttribute($data) }">
<a data-bind="text: $data.attribute,
click: $root._openAttribute"></a>
@ -864,7 +866,7 @@ function initViewModel_user(app, vmName) {
viewModel.name = app.ko.observable('guest');
}
viewModel.name.subscribe(function (newValue) {
console.log('change to new user', newValue);
app.debug && console.log('change to new user', newValue);
if (newValue != 'guest') {
var location = {
collection: getConfigDocSnapshot(app)[vmName].collection,
@ -981,7 +983,7 @@ function initViewModel_projects(app, vmName) {
};
// TODO: a callback would be nice so we can clear the
// _newAttribute box after the document has been written to.
// currently it just wierd in 'guest' mode as you can not
// currently it just weird in 'guest' mode as you can not
// have any tabs open.
viewModel._openAttribute(attribute);
}