Commit f50bdbc4 authored by Sven Franck's avatar Sven Franck

switched setting page title when create new page is true OR undefined (backlink)

parent df8a0edb
......@@ -2442,14 +2442,6 @@
}
);
// update header before changing to a new page
if (create === true) {
app.setPageTitle(
content_dict.title_i18n,
target.querySelectorAll("div.ui-header")
);
}
wrapper.appendChild(app.breadcrumb(url_dict));
wrapper.appendChild(target);
container.appendChild(wrapper);
......@@ -2481,6 +2473,14 @@
// TODO jQuery?
$(wrapper).empty().append(target).enhanceWithin();
}
// update header before changing to a new page/or back to home
if (create !== false) {
app.setPageTitle(
content_dict.title_i18n,
target.querySelectorAll("div.ui-header")
);
}
})
.fail(util.errorHandler);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment