1
0
Fork 0
Matthieu Lalonde 12 years ago committed by xSmurf
parent 49a8229162
commit 448d32a873

@ -178,44 +178,44 @@ body > .ui-layout-center > div {
display: block;
}
body > .ui-layout-center > div > div:first {
body > .ui-layout-center > div {
margin: 0;
padding: 0;
background: #FFF url(../img/grid3-hrow2.gif) repeat-x;
}
body > .ui-layout-center > div > div:first > div.third {
body > .ui-layout-center > div > div.third {
width: 33.3333%;
float: left;
clear: none;
}
body > .ui-layout-center > div > div:first > div.third:first-child {
body > .ui-layout-center > div > div.third:first-child {
clear: left;
}
body > .ui-layout-center > div > div:first > div.third:last-child {
body > .ui-layout-center > div > div.third:last-child {
clear: right;
}
body > .ui-layout-center > div > div:first > div.third > div.dataTables_wrapper,
body > .ui-layout-center > div > div:first > div.third > div.dataTables_wrapper {
body > .ui-layout-center > div > div.third > div.dataTables_wrapper,
body > .ui-layout-center > div > div.third > div.dataTables_wrapper {
border-left: 1px solid #C6C6C6;
}
body > .ui-layout-center > div > div:first > div:first-child > div.dataTables_wrapper,
body > .ui-layout-center > div > div:first > div:first-child > div.dataTables_wrapper {
body > .ui-layout-center > div > div:first-child > div.dataTables_wrapper,
body > .ui-layout-center > div > div:first-child > div.dataTables_wrapper {
border-left: none;
padding-left: 1px;
}
body > .ui-layout-center > div > div:first > div.third > div.dataTables_wrapper table td {
body > .ui-layout-center > div > div.third > div.dataTables_wrapper table td {
padding-left: 4px;
}
body > .ui-layout-center > div > div:first table.dataTable tr td.sorting_1 { background-color: transparent; }
body > .ui-layout-center > div > div:first table.dataTable tr td.sorting_2 { background-color: transparent; }
body > .ui-layout-center > div > div:first table.dataTable tr td.sorting_3 { background-color: transparent; }
body > .ui-layout-center > div table.dataTable tr td.sorting_1 { background-color: transparent; }
body > .ui-layout-center > div table.dataTable tr td.sorting_2 { background-color: transparent; }
body > .ui-layout-center > div table.dataTable tr td.sorting_3 { background-color: transparent; }
.ui-layout-center .client-view-container {
@ -344,7 +344,7 @@ div.dataTables_scrollHeadInner th {
border: none;
}
body > .ui-layout-center > div > div:first div.dataTables_scrollHeadInner th {
body > .ui-layout-center > div div.dataTables_scrollHeadInner th {
padding-left: 4px;
}
@ -361,10 +361,10 @@ table.dataTable tbody tr.selected td,
table.dataTable tbody tr.selected td.sorting_1,
table.dataTable tbody tr.selected td.sorting_2,
table.dataTable tbody tr.selected td.sorting_3,
body > .ui-layout-center > div > div:first > div.third > div.dataTables_wrapper table tr.selected td,
body > .ui-layout-center > div > div:first > div.third > div.dataTables_wrapper table tr.selected td.sorting_1,
body > .ui-layout-center > div > div:first > div.third > div.dataTables_wrapper table tr.selected td.sorting_2,
body > .ui-layout-center > div > div:first > div.third > div.dataTables_wrapper table tr.selected td.sorting_3,
body > .ui-layout-center > div > div.third > div.dataTables_wrapper table tr.selected td,
body > .ui-layout-center > div > div.third > div.dataTables_wrapper table tr.selected td.sorting_1,
body > .ui-layout-center > div > div.third > div.dataTables_wrapper table tr.selected td.sorting_2,
body > .ui-layout-center > div > div.third > div.dataTables_wrapper table tr.selected td.sorting_3,
.dropdown-menu * a:hover,
.dropdown-menu * a:focus,
.dropdown-menu * li:hover,

@ -178,7 +178,7 @@ _
pushState: true
, root: Config.docRoot
});
console.log(Bootstrap);
// For now let's reset the state when we start up
//that.navigate("", false);
@ -211,13 +211,14 @@ console.log(Bootstrap);
if (server && client) {
that.Views.SideBar.select(server);
// FIXME: This needs to take client states into account
var __fnAppEventClientLoaded = function () {
if (!that.Views.Main.getView(server.get("hostname"))) {
console.log(server);
that.Views.Main.setView(server.client.attributes.hostname, new ClientView({
/*el: that.Views.App.Layout.panes.center
, */server: server
, aoppendEl: that.Views.App.Layout.panes.center
, appendEl: that.Views.App.Layout.panes.center
}));
}
@ -347,6 +348,8 @@ console.log(Bootstrap);
that._modalAbout = $(tmplModalAbout);
that._modalAbout.on("hidden", function __fnEventAppModalAboutClosed(event) {
// FIXME: Doesn't seem to work
console.log(window.history.length, that.historyStart);
if (window.history.length === that.historyStart) {
that.navigate("", false);
} else {

@ -43,7 +43,6 @@ _
;
Browser.__super__.initialize.apply(that);
that.client = client;
}
});

@ -32,7 +32,8 @@ _
var Client = Backbone.View.extend({
id: null
, el: $(tmplClientLayout)
//, el: $(tmplClientLayout)
, tagName: "div"
, Server: null
@ -61,10 +62,8 @@ _
that.el.id = "__view-cient-" + that.Server.client.attributes.hostname.replace(".", "_");
that.id = that.Server.client.attributes.hostname;
/*
*/
that.el.innerHTML = tmplClientLayout;
that.el.innerHTML = that.el.innerHTML.replace("this.type", that.Server.client.url());
}
, _initLayout: function () {

@ -71,18 +71,15 @@ _
console.debug("Show view: "+ name);//, that.$el, that.children[name], that.children[name].$el);
if (that.children[name] && that.children[name].$el) {
console.log(that.$el.find(that.children[name].$el));
if (that.$el.find(that.children[name].$el).length === 0) {
that.$el.append(that.children[name].$el);
}
if (that.children[name].show) {
setTimeout(function __fnTimeoutMainViewShow() {
that.children[name].show();
}, 50);
that.children[name].show();
} else {
setTimeout(function __fnTimeoutMainViewShow() {
that.children[name].$el.show();
}, 50);
that.children[name].$el.show();
}
}
}
@ -102,7 +99,7 @@ _
}
setTimeout(function __fnTimeoutMainViewHide() {
that.$el.find(that.children[name].$el).remove();
that.$el.find(that.children[name].$el).detach();
}, 50);
}
}

@ -200,6 +200,8 @@ console.log(event);
model.destroy();
}, 10);
}
event.preventDefault();
};
}(item));

@ -4,19 +4,19 @@
<fieldset>
<legend>{{dmap_itemname}} login</legend>
<p>
<input type="text" class="input-large" placeholder="Login">
<input type="text" class="input-large" placeholder="Login" tabindex="1">
</p>
<p>
<input type="password" class="input-large" placeholder="Password">
<input type="password" class="input-large" placeholder="Password" tabindex="2">
</p>
<label class="checkbox">
<input type="checkbox"> Remember me
<input type="checkbox" tabindex="3"> Remember me
</label>
</fieldset>
</div>
<div class="modal-footer">
<a class="btn btn-mini" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i>&nbsp;Cancel</a>
<button class="btn btn-mini btn-primary" data-dismiss="action" aria-hidden="true"><i class="icon-ok"></i>&nbsp;Login</button>
<a class="btn btn-mini" data-dismiss="modal" aria-hidden="true" tabindex="5"><i class="icon-remove"></i>&nbsp;Cancel</a>
<button class="btn btn-mini btn-primary" data-dismiss="action" aria-hidden="true" tabindex="5"><i class="icon-ok"></i>&nbsp;Login</button>
</div>
</form>
</div>

@ -1,14 +1,12 @@
<div class="client-view-container">
<div class="ui-layout-north row-fluid span12">
<div class="third">
<table cellpadding="0" cellspacing="0" border="0" class="table-genres"><tr><td><h1>" + this.type + "</h1></td></tr></table>
</div>
<div class="third">
<table cellpadding="0" cellspacing="0" border="0" class="table-artists"><tr><td><h1>" + this.type + "</h1></td></tr></table>
</div>
<div class="third">
<table cellpadding="0" cellspacing="0" border="0" class="table-albums"><tr><td><h1>" + this.type + "</h1></td></tr></table>
</div>
<div class="ui-layout-north row-fluid span12">
<div class="third">
<table cellpadding="0" cellspacing="0" border="0" class="table-genres"><tr><td><h1>" + this.type + "</h1></td></tr></table>
</div>
<div class="ui-layout-center"></div>
</div>
<div class="third">
<table cellpadding="0" cellspacing="0" border="0" class="table-artists"><tr><td><h1>" + this.type + "</h1></td></tr></table>
</div>
<div class="third">
<table cellpadding="0" cellspacing="0" border="0" class="table-albums"><tr><td><h1>" + this.type + "</h1></td></tr></table>
</div>
</div>
<div class="ui-layout-center"></div>
Loading…
Cancel
Save