Skip to content

Commit 7dbc209

Browse files
committed
[initial-screen] eslint fixes.
1 parent 5a96fab commit 7dbc209

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

frontend/express/public/javascripts/countly/countly.views.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1122,8 +1122,10 @@ window.ManageAppsView = countlyView.extend({
11221122
}
11231123
}
11241124

1125-
// initial screen prepare method
1126-
// add first app elements and hide other things
1125+
/**
1126+
* initial screen prepare method
1127+
* add first app elements and hide other things
1128+
*/
11271129
function firstApp() {
11281130
store.set('first_app', true);
11291131
// hide sidebar & app navigation and app management bar
@@ -1150,10 +1152,12 @@ window.ManageAppsView = countlyView.extend({
11501152
$('#add-first-app').css({'display': 'block'});
11511153
}
11521154

1153-
// make things normal after first app create process
1155+
/**
1156+
* make things normal after first app create process
1157+
*/
11541158
function afterFirstApp() {
11551159
$("#sidebar").removeClass("hidden");
1156-
$("#app-navigation").css({'opacity': '1','pointer-events': 'auto'});
1160+
$("#app-navigation").css({'opacity': '1', 'pointer-events': 'auto'});
11571161
$("#hide-sidebar-button").show();
11581162
$('#app-management-bar').show();
11591163
var widthOfSidebar = $('#sidebar').width();

plugins/enterpriseinfo/frontend/public/javascripts/countly.views.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*global CountlyHelpers, EnterpriseView, countlyGlobalEE, countlyView, countlyGlobal, Handlebars, app, $, jQuery*/
1+
/*global CountlyHelpers, store, EnterpriseView, countlyGlobalEE, countlyView, countlyGlobal, Handlebars, app, $, jQuery*/
22

33
window.EnterpriseView = countlyView.extend({
44
initialize: function() {},

plugins/populator/frontend/public/javascripts/countly.views.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*global countlyPopulator, countlyGlobal, countlyCommon, $, moment, app, countlyView, Handlebars, jQuery, PopulatorView, CountlyHelpers, production*/
1+
/*global countlyPopulator, countlyGlobal, store, countlyCommon, $, moment, app, countlyView, Handlebars, jQuery, PopulatorView, CountlyHelpers, production*/
22
window.PopulatorView = countlyView.extend({
33
initialize: function() {
44
},
@@ -149,15 +149,15 @@ app.addPageScript("/manage/apps", function() {
149149
'</tr>';
150150

151151
var populateFirstApp = '<div class="add-app-input-wrapper">' +
152-
'<input class="add-app-checkbox" type="checkbox" id="populate-first-app-after"/>&nbsp;&nbsp;&nbsp;<span id="populate-after-app-description" data-localize="populator.tooltip"></span>'+
152+
'<input class="add-app-checkbox" type="checkbox" id="populate-first-app-after"/>&nbsp;&nbsp;&nbsp;<span id="populate-after-app-description" data-localize="populator.tooltip"></span>' +
153153
'</div>';
154154

155155
$("#add-new-app table .table-add").before(populateApp);
156156
$('#save-first-app-add').before(populateFirstApp);
157157

158158
var saveBtn = store.get('first_app') ? '#save-first-app-add' : '#save-app-add';
159159
$(saveBtn).click(function() {
160-
if ($("#add-new-app table #populate-app-after").is(':checked') || $("#add-first-app #populate-first-app-after").is(':checked')){
160+
if ($("#add-new-app table #populate-app-after").is(':checked') || $("#add-first-app #populate-first-app-after").is(':checked')) {
161161
start_populating = true;
162162
setTimeout(function() {
163163
start_populating = false;

0 commit comments

Comments
 (0)