Skip to content

Commit

Permalink
ES6 Migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca committed Mar 27, 2018
1 parent f8b5ed3 commit ce32232
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 55 deletions.
46 changes: 0 additions & 46 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,3 @@

# User-specific stuff:
.idea/*
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

6 changes: 3 additions & 3 deletions js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function scheduler_save(e) {
}

function scheduler_remove(e) {
var scheduler = $("#scheduler").data("kendoScheduler");
const scheduler = $("#scheduler").data("kendoScheduler");
kRefresh();
}

Expand All @@ -23,7 +23,7 @@ function scheduler_moveE(e) {
}

function kRefresh() {
$("#scheduler").data("kendoScheduler").dataSource.read();
$("#scheduler").data("kendoScheduler").dataSource.read();
}

function load() {
Expand Down Expand Up @@ -235,7 +235,7 @@ document.body.onkeyup = function (e) {
if (e.keyCode == 18) {
e.preventDefault();
toggleCal();
}else if(e.keyCode == 27){
} else if (e.keyCode == 27) {
e.preventDefault();
$("#popupCalendar").hide();
}
Expand Down
8 changes: 4 additions & 4 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
function loadOptions(callback) {

chrome.storage.sync.get('options', items => {
var options = items['options'];
let options = items['options'];
if (options == null || options === "{}") {
options = {};
}
Expand All @@ -25,16 +25,16 @@ function loadOptions(callback) {

// Send options to all tabs and extension pages
function sendOptions(options) {
var request = {
const request = {
action: 'optionsChanged',
'options': options
};

// Send options to all tabs
chrome.windows.getAll(null, function (windows) {
for (var i = 0; i < windows.length; i++) {
for (let i = 0; i < windows.length; i++) {
chrome.tabs.getAllInWindow(windows[i].id, function (tabs) {
for (var j = 0; j < tabs.length; j++) {
for (let j = 0; j < tabs.length; j++) {
chrome.tabs.sendMessage(tabs[j].id, request);
}
});
Expand Down
4 changes: 2 additions & 2 deletions js/popup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var options;
var count = 3;
let options;
let count = 3;
$(() => {
$('body').on('click', 'a', function () {
chrome.tabs.create({url: $(this).attr('href')});
Expand Down

0 comments on commit ce32232

Please sign in to comment.