Skip to content

Commit

Permalink
pulizia codice
Browse files Browse the repository at this point in the history
  • Loading branch information
giatro committed Feb 2, 2011
1 parent e7f8705 commit 788ced0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 3 additions & 0 deletions js/background.js
Expand Up @@ -41,6 +41,9 @@ var injCallBack = function(S){
});
}
var getRequestResponseCallback = function getRequestResponseCallback(response) {
/*
* TODO
*/
};


Expand Down
9 changes: 0 additions & 9 deletions js/popup.js
Expand Up @@ -21,9 +21,6 @@ function start() {
}
chrome.tabs.executeScript(tab.id,{file:'js/content.js',allFrames:true},injCallBack);
});
// chrome.tabs.getSelected(null, function(tab) { // get selected string in current tab
// chrome.tabs.sendRequest(tab.id, getRequest, getRequestResponseCallback)
// });
return;
};
var injCallBack = function(){
Expand All @@ -49,13 +46,10 @@ function setStrings(){
$('a[href="#main"],a[href="#-x"]').attr('title', t('close'));
$('a[href="#main"].icon-check').attr('title', t('save')).html(t('save'));
$('a[href="#options"]').attr('title', t('settings'));
// $('#btClose').attr('title', t('close'));
}

var savePrefs = function savePrefs() {
var preferred = [];
// var froms = $('#options select[name=preffrom]');
// var tos = $('#options select[name=prefto]');
for (var i = 0, max = $('#options select[name=preffrom]').length; i < max; i++) {
preferred.push($($('#options select[name=preffrom]').get(i)).val() + '|' + $($('#options select[name=prefto]').get(i)).val());
}
Expand Down Expand Up @@ -155,9 +149,6 @@ var doTranslation = function doTranslation() {
}
});
};
/*
* Defaults
*/
google.setOnLoadCallback(function(){
LANGUAGES = google.language.Languages;
start();
Expand Down

0 comments on commit 788ced0

Please sign in to comment.