root / snf-cyclades-app / synnefo / ui / static / snf / js / ui / web / ui_disks_view.js @ 664f05f0
History | View | Annotate | Download (2.3 kB)
1 | 7f841ad2 | Olga Brani | // Copyright 2011 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | 7f841ad2 | Olga Brani | //
|
3 | 7f841ad2 | Olga Brani | // Redistribution and use in source and binary forms, with or
|
4 | 7f841ad2 | Olga Brani | // without modification, are permitted provided that the following
|
5 | 7f841ad2 | Olga Brani | // conditions are met:
|
6 | 7f841ad2 | Olga Brani | //
|
7 | 7f841ad2 | Olga Brani | // 1. Redistributions of source code must retain the above
|
8 | 7f841ad2 | Olga Brani | // copyright notice, this list of conditions and the following
|
9 | 7f841ad2 | Olga Brani | // disclaimer.
|
10 | 7f841ad2 | Olga Brani | //
|
11 | 7f841ad2 | Olga Brani | // 2. Redistributions in binary form must reproduce the above
|
12 | 7f841ad2 | Olga Brani | // copyright notice, this list of conditions and the following
|
13 | 7f841ad2 | Olga Brani | // disclaimer in the documentation and/or other materials
|
14 | 7f841ad2 | Olga Brani | // provided with the distribution.
|
15 | 7f841ad2 | Olga Brani | //
|
16 | 7f841ad2 | Olga Brani | // THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
17 | 7f841ad2 | Olga Brani | // OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18 | 7f841ad2 | Olga Brani | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
19 | 7f841ad2 | Olga Brani | // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
20 | 7f841ad2 | Olga Brani | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21 | 7f841ad2 | Olga Brani | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 | 7f841ad2 | Olga Brani | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
23 | 7f841ad2 | Olga Brani | // USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
24 | 7f841ad2 | Olga Brani | // AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
25 | 7f841ad2 | Olga Brani | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
26 | 7f841ad2 | Olga Brani | // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
27 | 7f841ad2 | Olga Brani | // POSSIBILITY OF SUCH DAMAGE.
|
28 | 7f841ad2 | Olga Brani | //
|
29 | 7f841ad2 | Olga Brani | // The views and conclusions contained in the software and
|
30 | 7f841ad2 | Olga Brani | // documentation are those of the authors and should not be
|
31 | 7f841ad2 | Olga Brani | // interpreted as representing official policies, either expressed
|
32 | 7f841ad2 | Olga Brani | // or implied, of GRNET S.A.
|
33 | 7f841ad2 | Olga Brani | //
|
34 | 7f841ad2 | Olga Brani | |
35 | 7f841ad2 | Olga Brani | ;(function(root){
|
36 | 7f841ad2 | Olga Brani | |
37 | 7f841ad2 | Olga Brani | // root
|
38 | 7f841ad2 | Olga Brani | var root = root;
|
39 | 7f841ad2 | Olga Brani | |
40 | 7f841ad2 | Olga Brani | // setup namepsaces
|
41 | 7f841ad2 | Olga Brani | var snf = root.synnefo = root.synnefo || {};
|
42 | 7f841ad2 | Olga Brani | var models = snf.models = snf.models || {}
|
43 | 7f841ad2 | Olga Brani | var storage = snf.storage = snf.storage || {};
|
44 | 7f841ad2 | Olga Brani | var ui = snf.ui = snf.ui || {};
|
45 | 7f841ad2 | Olga Brani | var util = snf.util || {};
|
46 | 7f841ad2 | Olga Brani | var views = snf.views = snf.views || {}
|
47 | 7f841ad2 | Olga Brani | |
48 | 7f841ad2 | Olga Brani | // shortcuts
|
49 | 7f841ad2 | Olga Brani | var bb = root.Backbone;
|
50 | 7f841ad2 | Olga Brani | |
51 | 7f841ad2 | Olga Brani | // logging
|
52 | 7f841ad2 | Olga Brani | var logger = new snf.logging.logger("SNF-VIEWS"); |
53 | 7f841ad2 | Olga Brani | var debug = _.bind(logger.debug, logger);
|
54 | 7f841ad2 | Olga Brani | |
55 | 7f841ad2 | Olga Brani | views.DisksView = views.View.extend({ |
56 | 7f841ad2 | Olga Brani | |
57 | 7f841ad2 | Olga Brani | view_id: "disks", |
58 | 7f841ad2 | Olga Brani | pane: "#disks-pane", |
59 | 7f841ad2 | Olga Brani | el: "#disks-pane", |
60 | 7f841ad2 | Olga Brani | |
61 | 7f841ad2 | Olga Brani | initialize: function() { |
62 | 7f841ad2 | Olga Brani | |
63 | 7f841ad2 | Olga Brani | }, |
64 | 7f841ad2 | Olga Brani | |
65 | 7f841ad2 | Olga Brani | __update_layout: function() { |
66 | 7f841ad2 | Olga Brani | |
67 | 7f841ad2 | Olga Brani | } |
68 | 7f841ad2 | Olga Brani | }); |
69 | 7f841ad2 | Olga Brani | |
70 | 7f841ad2 | Olga Brani | })(this); |