parent
54b3b1ca06
commit
66d5e59f8e
@ -0,0 +1,32 @@
|
||||
/*jslint laxbreak:true */
|
||||
/*jslint laxcomma:true */
|
||||
/*jslint loopfunc:true */
|
||||
/*jslint strict:true */
|
||||
/*jslint browser:true */
|
||||
/*jslint devel:true */
|
||||
define([
|
||||
"underscore"
|
||||
, "backbone"
|
||||
|
||||
, "models/server"
|
||||
|
||||
, "backbone-localstorage"
|
||||
]
|
||||
, function (_, Backbone, ServerModel) {
|
||||
"use strict";
|
||||
|
||||
var Server = Backbone.Collection.extend({
|
||||
model: ServerModel
|
||||
|
||||
, localStorage: new Backbone.LocalStorage("daap-servers")
|
||||
|
||||
, initialize: function () {
|
||||
//_.bindAll(this, "");
|
||||
|
||||
return Server.__super__.initialize.call(this, arguments);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
return Server;
|
||||
});
|
@ -0,0 +1,52 @@
|
||||
/*jslint laxbreak:true */
|
||||
/*jslint laxcomma:true */
|
||||
/*jslint loopfunc:true */
|
||||
/*jslint strict:true */
|
||||
/*jslint browser:true */
|
||||
/*jslint devel:true */
|
||||
|
||||
define([
|
||||
"underscore"
|
||||
, "jquery"
|
||||
, "backbone"
|
||||
|
||||
, "views/browser"
|
||||
, "views/list"
|
||||
|
||||
, "text!../../templates/client/browser-layout.html"
|
||||
|
||||
, "jquery-layout"
|
||||
]
|
||||
, function (
|
||||
_
|
||||
, $
|
||||
, Backbone
|
||||
|
||||
, BrowserView
|
||||
, ListView
|
||||
|
||||
, tmplBrowserLayout
|
||||
) {
|
||||
"use strict";
|
||||
|
||||
var Browser = Backbone.View.extend({
|
||||
client: null
|
||||
|
||||
, layout: null
|
||||
|
||||
, browserView: null
|
||||
|
||||
, listView: null
|
||||
|
||||
, initialize: function (client) {
|
||||
var that = this
|
||||
;
|
||||
|
||||
Browser.__super__.initialize.apply(that);
|
||||
|
||||
that.client = client;
|
||||
}
|
||||
});
|
||||
|
||||
return Browser;
|
||||
});
|
@ -0,0 +1,16 @@
|
||||
<div>
|
||||
<div class="ui-layout-north row-fluid span12">
|
||||
<div class="third">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="table-genres"></table>
|
||||
</div>
|
||||
<div class="third">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="table-artists"></table>
|
||||
</div>
|
||||
<div class="third">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="table-albums"></table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-layout-center">
|
||||
<table cellpadding="0" cellspacing="0" border="0" class="table-list"></table>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue