Skip to content

Commit 4221b7a

Browse files
committed
removed logs
1 parent a9b7439 commit 4221b7a

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

  • services/language_translation

services/language_translation/v2.html

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@
183183

184184
// convert an id in the form it-ko into Italian - Korean for display
185185
function changeIdToText(id) {
186-
console.log('in changeIdToText');
187186
var txt = "";
188187
var langs = id.split('-');
189188
var first = true;
@@ -201,7 +200,6 @@
201200
// Function to be used at the start, as don't want to expose any fields, unless the model is
202201
// available. The model it self can only be fetched if the credentials are available.
203202
function hideAll() {
204-
console.log('in hideAll');
205203
if (!models) {
206204
$('#credentials-not-found').show();
207205
$('#node-input-action').parent().hide();
@@ -222,7 +220,6 @@
222220
// are shown without the user having to close the dialog.
223221
// Problem is that the onchange is only invoked when the user tabs to another field.
224222
function checkVisibility() {
225-
console.log('in checkVisibility');
226223
if (models) {
227224
$('#node-input-action').parent().show();
228225
checkActionSelected();
@@ -238,7 +235,6 @@
238235
// Retrieve the available models from the server, if data is returned, then
239236
// can enable the dynamic selection fields.
240237
function checkModels() {
241-
console.log('in checkModels');
242238
var u = $('#node-input-username').val();
243239
var p = $('#node-input-password').val();
244240

@@ -256,7 +252,6 @@
256252
// Simple check that is only invoked if the service is not bound into bluemix. In this case the
257253
// user has to provide credentials. Once there are credentials, then the models are retrieved.
258254
function getCredentials() {
259-
console.log('in getCredentials');
260255
var u = $('#node-input-username').val();
261256
var p = $('#node-input-password').val();
262257

@@ -274,7 +269,6 @@
274269
// destination language selection field is dynamically repopulated, and reselected if the
275270
// previously selection is still in the new list.
276271
function langDestAvailable() {
277-
console.log('in langDestAvailable');
278272
if (!domain_type) { return; }
279273

280274
var pair_lang = domain_type.map(function (a) {
@@ -308,7 +302,6 @@
308302
// Populates the domains selection field.
309303
// If domains have already been retrieved then no need to refetch them.
310304
function checkDomains() {
311-
console.log('in checkDomains');
312305
if (!domains) {
313306
domains = models.map(function (a) {
314307
return a.domain;
@@ -339,7 +332,6 @@
339332

340333
// Populates the base model field. These are the models that are available to be customised.
341334
function checkBaseModels() {
342-
console.log('in checkBaseModels');
343335
if (!basemodels && models) {
344336
basemodels = models.filter(function (model) {
345337
return model.customizable === true;
@@ -369,7 +361,6 @@
369361
// new model is triggerd, but that is a little complicated and needs to be done on
370362
// a clear mind.
371363
function checkCustomsAvailable() {
372-
console.log('in checkCustomsAvailable');
373364
if (!custommodels && models) {
374365
custommodels = models.filter(function (m) {
375366
return (m.base_model_id && ('' != m.base_model_id));
@@ -400,7 +391,6 @@
400391
// UI Handler for the Mode / switch.
401392
// Princliple function is to show / hide the appropriate fields.
402393
function checkActionSelected() {
403-
console.log('in checkActionSelected');
404394
action = $('#node-input-action').val();
405395
if (models) {
406396
$('#credentials-not-found').hide();
@@ -446,7 +436,6 @@
446436
// UI Handler for the domain switch
447437
// Repopulate the source and languages based on the available translations for the domain
448438
function checkDomainSelected(){
449-
console.log('in checkDomainSelected');
450439
$('#node-input-srclang').empty();
451440
$('#node-input-destlang').empty();
452441
if (models && domains) {
@@ -486,7 +475,6 @@
486475

487476
// Register the handlers for the fields
488477
function UIListeners() {
489-
console.log('in UIListeners');
490478
$('#node-input-username').change(function(val){
491479
getCredentials();
492480
if (have_credentials) {
@@ -533,7 +521,6 @@
533521
// So hidden (text) fields are being used to squirrel away the values, so that
534522
// they can be restored.
535523
function restoreHidden() {
536-
console.log('in restoreHidden');
537524
domain_selected = $('#node-input-domainhidden').val();
538525
$('select#node-input-domain').val(domain_selected);
539526
srclang_selected = $('#node-input-srclanghidden').val();
@@ -550,8 +537,6 @@
550537
// This is the on edit prepare function, which will be invoked everytime the dialog
551538
// is shown.
552539
function oneditprepare() {
553-
console.log('in oneditprepare');
554-
555540
hideAll();
556541
restoreHidden();
557542

@@ -596,7 +581,6 @@
596581

597582
// Save the values in the dyanmic lists to the hidden fields.
598583
function oneditsave(){
599-
console.log('in oneditsave');
600584
$('#node-input-domainhidden').val(domain_selected);
601585
$('#node-input-srclanghidden').val(srclang_selected);
602586
$('#node-input-destlanghidden').val(destlang_selected);

0 commit comments

Comments
 (0)