mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-03 16:48:38 -04:00
Update layout.
This commit is contained in:
parent
3aead503c1
commit
551c031c42
54 changed files with 2064 additions and 428 deletions
|
@ -2,11 +2,9 @@ modulejs.define('view/sidebar', ['$', 'core/resource', 'core/store'], function (
|
|||
|
||||
var storekey = 'sidebarIsVisible';
|
||||
var toggleTemplate =
|
||||
'<li id="sidebar-toggle" class="view">' +
|
||||
'<a href="#">' +
|
||||
'<img src="' + resource.image('settings') + '" alt="settings"/>' +
|
||||
'</a>' +
|
||||
'</li>';
|
||||
'<div id="sidebar-toggle" class="tool">' +
|
||||
'<img src="' + resource.image('settings') + '" alt="settings"/>' +
|
||||
'</div>';
|
||||
|
||||
|
||||
function update(toggle) {
|
||||
|
@ -32,8 +30,8 @@ modulejs.define('view/sidebar', ['$', 'core/resource', 'core/store'], function (
|
|||
function init() {
|
||||
|
||||
$(toggleTemplate)
|
||||
.appendTo('#navbar')
|
||||
.on('click', 'a', function (ev) {
|
||||
.appendTo('#toolbar')
|
||||
.on('click', function (ev) {
|
||||
|
||||
update(true);
|
||||
ev.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue