Commit 184a99a0 authored by Olga Brani's avatar Olga Brani

ui: Fix trailing comma in Javascript files

parent a44a5290
...@@ -5546,10 +5546,10 @@ ...@@ -5546,10 +5546,10 @@
length: length, length: length,
duration: isValue(args.duration) ? args.duration : $$.config.transition_duration, duration: isValue(args.duration) ? args.duration : $$.config.transition_duration,
done: args.done, done: args.done,
orgDataCount: orgDataCount, orgDataCount: orgDataCount
}, },
withLegend: true, withLegend: true,
withTransition: orgDataCount > 1, withTransition: orgDataCount > 1
}); });
}; };
......
...@@ -186,7 +186,7 @@ snf = { ...@@ -186,7 +186,7 @@ snf = {
notifyReloadTable: '<p class="warning">You may need to reload the table before making any new selections.<span class="wrap"><a class="clear-reload warning-btn">Clear selected and reload</a></span></p>', notifyReloadTable: '<p class="warning">You may need to reload the table before making any new selections.<span class="wrap"><a class="clear-reload warning-btn">Clear selected and reload</a></span></p>',
warningDuplicates: '<p class="warning-duplicate">Duplicate accounts have been detected</p>', warningDuplicates: '<p class="warning-duplicate">Duplicate accounts have been detected</p>',
commonRow: '<tr data-itemid=<%= itemID %> <% if(hidden) { %> class="hidden-row" <% } %> ><td class="item-name"><%= itemName %></td><td class="item-id"><%= itemID %></td><td class="owner-name"><%= ownerName %></td><td class="owner-email"><div class="wrap"><a class="remove" title="Remove item from selection">X</a><%= ownerEmail %></div></td></tr>', commonRow: '<tr data-itemid=<%= itemID %> <% if(hidden) { %> class="hidden-row" <% } %> ><td class="item-name"><%= itemName %></td><td class="item-id"><%= itemID %></td><td class="owner-name"><%= ownerName %></td><td class="owner-email"><div class="wrap"><a class="remove" title="Remove item from selection">X</a><%= ownerEmail %></div></td></tr>',
contactRow: '<tr <% if(showAssociations) { %> title="related with: <%= associations %>" <% } %> data-itemid=<%= itemID %> <% if(hidden) { %> class="hidden-row" <% } %> ><td class="full-name"><%= fullName %></td><td class="email"><div class="wrap"><a class="remove" title="Remove item from selection">X</a><%= email %></div></td></tr>', contactRow: '<tr <% if(showAssociations) { %> title="related with: <%= associations %>" <% } %> data-itemid=<%= itemID %> <% if(hidden) { %> class="hidden-row" <% } %> ><td class="full-name"><%= fullName %></td><td class="email"><div class="wrap"><a class="remove" title="Remove item from selection">X</a><%= email %></div></td></tr>'
} }
}, },
tables: { tables: {
......
...@@ -585,7 +585,7 @@ $(document).ready(function() { ...@@ -585,7 +585,7 @@ $(document).ready(function() {
trigger: 'click', trigger: 'click',
html: true, html: true,
content: filtersListHTML, content: filtersListHTML,
placement: 'bottom', placement: 'bottom'
}); });
$('#select-filters').attr('title', $('#select-filters').attr('link-title')); $('#select-filters').attr('title', $('#select-filters').attr('link-title'));
......
...@@ -48,7 +48,7 @@ $(document).ready(function() { ...@@ -48,7 +48,7 @@ $(document).ready(function() {
dataType: "json", dataType: "json",
success: function(data){ success: function(data){
spinner.hide(); spinner.hide();
}, }
}) })
}); });
......
...@@ -111,7 +111,7 @@ $(document).ready(function() { ...@@ -111,7 +111,7 @@ $(document).ready(function() {
return data; return data;
} }
} }
}, }
], ],
"order": [0, "asc"], "order": [0, "asc"],
"createdRow": function(row, data, dataIndex) { "createdRow": function(row, data, dataIndex) {
...@@ -250,7 +250,7 @@ $(document).ready(function() { ...@@ -250,7 +250,7 @@ $(document).ready(function() {
"orderable": false, "orderable": false,
"render": function(data, type, rowData) { "render": function(data, type, rowData) {
return extraTemplate(data); return extraTemplate(data);
}, }
}, },
// "targets": '_all' this must be the last item of the array // "targets": '_all' this must be the last item of the array
{ {
...@@ -263,7 +263,7 @@ $(document).ready(function() { ...@@ -263,7 +263,7 @@ $(document).ready(function() {
return data; return data;
} }
} }
}, }
], ],
"order": [0, "asc"], "order": [0, "asc"],
"lengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]], "lengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]],
...@@ -276,7 +276,7 @@ $(document).ready(function() { ...@@ -276,7 +276,7 @@ $(document).ready(function() {
row.id = 'selected-'+data[extraIndex].id.value; //sets the dom id row.id = 'selected-'+data[extraIndex].id.value; //sets the dom id
clickDetails(row); clickDetails(row);
clickSummary(row); clickSummary(row);
}, }
}); });
function keepSelected(data, drawNow) { function keepSelected(data, drawNow) {
...@@ -486,7 +486,7 @@ $(document).ready(function() { ...@@ -486,7 +486,7 @@ $(document).ready(function() {
$summaryContent.css({ $summaryContent.css({
width: summaryContentWidth, width: summaryContentWidth,
right: summaryContPos, right: summaryContPos,
paddingTop: summaryContentHeight, paddingTop: summaryContentHeight
}); });
} }
......
...@@ -155,7 +155,7 @@ function tableSort(tableEl, iDisplayLength, bFilter) { ...@@ -155,7 +155,7 @@ function tableSort(tableEl, iDisplayLength, bFilter) {
"bStateSave": true, "bStateSave": true,
"aoColumnDefs": [ "aoColumnDefs": [
{ "sType": "num-html", "aTargets": numHTMLArr }, { "sType": "num-html", "aTargets": numHTMLArr },
{ "sType": "date-uk", "aTargets": dateArr }, { "sType": "date-uk", "aTargets": dateArr }
], ],
"oLanguage": { "oLanguage": {
"sLengthMenu": 'Pagination <select>'+ "sLengthMenu": 'Pagination <select>'+
......
...@@ -134,7 +134,7 @@ _.extend(UsageView.prototype, { ...@@ -134,7 +134,7 @@ _.extend(UsageView.prototype, {
this.container.append(this.el.main); this.container.append(this.el.main);
var ul = this.container.find("ul"); var ul = this.container.find("ul");
this.el.list = this.render('quotas', { this.el.list = this.render('quotas', {
'resources': this.resources_ordered, 'resources': this.resources_ordered
}); });
ul.append(this.el.list).hide(); ul.append(this.el.list).hide();
_.each(this.resources_ordered, function(resource) { _.each(this.resources_ordered, function(resource) {
...@@ -476,7 +476,7 @@ _.extend(UsageView.prototype, { ...@@ -476,7 +476,7 @@ _.extend(UsageView.prototype, {
'url': url || this.url, 'url': url || this.url,
'headers': { 'headers': {
'X-Auth-Token': token 'X-Auth-Token': token
}, }
} }
}, },
......
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
i.get_owner_uuid() != snf.user.get_username() && i.get_owner_uuid() != snf.user.get_username() &&
!i.is_public(); !i.is_public();
}); });
}, }
}) })
......
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
} }
} }
}); });
}, }
}); });
models.CombinedPublicNetwork = models.Network.extend({ models.CombinedPublicNetwork = models.Network.extend({
......
...@@ -940,7 +940,7 @@ ...@@ -940,7 +940,7 @@
views.IconView.VM_OS_ICON_TPLS = function() { views.IconView.VM_OS_ICON_TPLS = function() {
return { return {
"medium": snf.config.machines_icons_url + "medium/{0}-sprite.png", "medium": snf.config.machines_icons_url + "medium/{0}-sprite.png",
"medium2": snf.config.machines_icons_url + "medium/{0}-sprite2.png", "medium2": snf.config.machines_icons_url + "medium/{0}-sprite2.png"
} }
} }
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
'DOWN': 'status-inactive', 'DOWN': 'status-inactive',
'DISCONNECTED': 'status-inactive', 'DISCONNECTED': 'status-inactive',
'UP': 'status-active', 'UP': 'status-active',
'REMOVING': 'status-progress destroying-state', 'REMOVING': 'status-progress destroying-state'
}, },
tpl: '#ip-view-tpl', tpl: '#ip-view-tpl',
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
views.IpsPaneView = views.ext.PaneView.extend({ views.IpsPaneView = views.ext.PaneView.extend({
el: '#ips-pane', el: '#ips-pane',
collection_view_cls: views.IpCollectionView, collection_view_cls: views.IpCollectionView
}); });
views.IPConnectVmOverlay = views.NetworkConnectVMsOverlay.extend({ views.IPConnectVmOverlay = views.NetworkConnectVMsOverlay.extend({
......
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
synnefo.storage.keys.create({ synnefo.storage.keys.create({
content: data.key, content: data.key,
name: data.name, name: data.name
}, params); }, params);
}, },
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
'disk': '.machine-detail.disk', 'disk': '.machine-detail.disk',
'image_name': '.machine-detail.image-name', 'image_name': '.machine-detail.image-name',
'image_size': '.machine-detail.image-size' 'image_size': '.machine-detail.image-size'
}, }
}) })
......
...@@ -544,7 +544,7 @@ ...@@ -544,7 +544,7 @@
}, 1000); }, 1000);
}, this)); }, this));
} }
}, }
}); });
views.VolumeView = views.ext.ModelView.extend({ views.VolumeView = views.ext.ModelView.extend({
......
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
options['el'] = $(this.$(this.collection_view_selector).get(0)); options['el'] = $(this.$(this.collection_view_selector).get(0));
this.collection_view = this.create_view(this.collection_view_cls, options); this.collection_view = this.create_view(this.collection_view_cls, options);
this.add_subview(this.collection_view); this.add_subview(this.collection_view);
}, }
}); });
views.ext.CollectionView = views.ext.View.extend({ views.ext.CollectionView = views.ext.View.extend({
......
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
error: err || function() {}, error: err || function() {},
silent: true silent: true
}); });
}, }
}); });
......
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