From 3769a882cf96974b060013197b2d7d0ecf630767 Mon Sep 17 00:00:00 2001 From: agordillo Date: Mon, 6 Jun 2016 14:24:16 +0200 Subject: [PATCH] Minor bug fixed --- edit.html | 2 +- js/VISH.Editor.Settings.js | 5 ++-- js/doc/data.json | 32 +++++++++++------------ js/doc/files/VISH.Editor.Settings.js.html | 5 ++-- js/lang/translations.js | 8 +++--- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/edit.html b/edit.html index a153c9d8..657c870f 100644 --- a/edit.html +++ b/edit.html @@ -586,7 +586,7 @@
- +
diff --git a/js/VISH.Editor.Settings.js b/js/VISH.Editor.Settings.js index 67419931..8f5934f7 100644 --- a/js/VISH.Editor.Settings.js +++ b/js/VISH.Editor.Settings.js @@ -401,11 +401,10 @@ VISH.Editor.Settings = (function(V,$,undefined){ if(enable){ $("#save_presentation_details").removeClass("buttonDisabledOnSettings"); $("#save_presentation_details").removeAttr("disabled"); - $("#save_presentation_details").attr("disabledTitle",$("#save_presentation_details").attr("title")); $("#save_presentation_details").removeAttr("title"); } else { - if(!$("#save_presentation_details").attr("title")){ - $("#save_presentation_details").attr("title",$("#save_presentation_details").attr("disabledTitle")); + if(typeof $("#save_presentation_details").attr("title") == "undefined"){ + $("#save_presentation_details").attr("title",V.I18n.getTrans("i.tooltip.continueDisabled")); } $("#save_presentation_details").addClass("buttonDisabledOnSettings"); $("#save_presentation_details").attr("disabled","true"); diff --git a/js/doc/data.json b/js/doc/data.json index 54d4e37e..6c64c3a6 100644 --- a/js/doc/data.json +++ b/js/doc/data.json @@ -737,49 +737,49 @@ }, { "file": "VISH.Editor.Settings.js", - "line": 429, + "line": 428, "description": "function called when the user clicks on the save button\nin the initial presentation details fancybox to save\nthe data in order to be stored at the end in the JSON file", "class": "VISH.Editor" }, { "file": "VISH.Editor.Settings.js", - "line": 668, + "line": 667, "description": "function called when navigating into metadata options to manage tabs", "class": "VISH.Editor" }, { "file": "VISH.Editor.Settings.js", - "line": 685, + "line": 684, "description": "function called when the user clicks on the metadata options button", "class": "VISH.Editor" }, { "file": "VISH.Editor.Settings.js", - "line": 698, + "line": 697, "description": "Function called when the user clicks on the done button in the metadata options panel", "class": "VISH.Editor" }, { "file": "VISH.Editor.Settings.js", - "line": 708, + "line": 707, "description": "Function called when the user clicks on the catalog button", "class": "VISH.Editor" }, { "file": "VISH.Editor.Settings.js", - "line": 717, + "line": 716, "description": "Function called when the user clicks on the done button in the catalog panel", "class": "VISH.Editor" }, { "file": "VISH.Editor.Settings.js", - "line": 732, + "line": 731, "description": "Function to beautify upload behaviour", "class": "VISH.Editor" }, { "file": "VISH.Editor.Settings.js", - "line": 748, + "line": 747, "description": "Function to handle uploading an attachment behaviour", "class": "VISH.Editor" }, @@ -2038,35 +2038,35 @@ }, { "message": "Missing item type\nfunction called when the user clicks on the save button\nin the initial presentation details fancybox to save\nthe data in order to be stored at the end in the JSON file", - "line": " VISH.Editor.Settings.js:429" + "line": " VISH.Editor.Settings.js:428" }, { "message": "Missing item type\nfunction called when navigating into metadata options to manage tabs", - "line": " VISH.Editor.Settings.js:668" + "line": " VISH.Editor.Settings.js:667" }, { "message": "Missing item type\nfunction called when the user clicks on the metadata options button", - "line": " VISH.Editor.Settings.js:685" + "line": " VISH.Editor.Settings.js:684" }, { "message": "Missing item type\nFunction called when the user clicks on the done button in the metadata options panel", - "line": " VISH.Editor.Settings.js:698" + "line": " VISH.Editor.Settings.js:697" }, { "message": "Missing item type\nFunction called when the user clicks on the catalog button", - "line": " VISH.Editor.Settings.js:708" + "line": " VISH.Editor.Settings.js:707" }, { "message": "Missing item type\nFunction called when the user clicks on the done button in the catalog panel", - "line": " VISH.Editor.Settings.js:717" + "line": " VISH.Editor.Settings.js:716" }, { "message": "Missing item type\nFunction to beautify upload behaviour", - "line": " VISH.Editor.Settings.js:732" + "line": " VISH.Editor.Settings.js:731" }, { "message": "Missing item type\nFunction to handle uploading an attachment behaviour", - "line": " VISH.Editor.Settings.js:748" + "line": " VISH.Editor.Settings.js:747" }, { "message": "Missing item type\nfunction to know if the slides have the focus or not\nUse to disable actions (like keyboard shortcuts) when the slide is not focused", diff --git a/js/doc/files/VISH.Editor.Settings.js.html b/js/doc/files/VISH.Editor.Settings.js.html index bb744c2f..ce63365e 100644 --- a/js/doc/files/VISH.Editor.Settings.js.html +++ b/js/doc/files/VISH.Editor.Settings.js.html @@ -483,11 +483,10 @@

File: VISH.Editor.Settings.js

if(enable){ $("#save_presentation_details").removeClass("buttonDisabledOnSettings"); $("#save_presentation_details").removeAttr("disabled"); - $("#save_presentation_details").attr("disabledTitle",$("#save_presentation_details").attr("title")); $("#save_presentation_details").removeAttr("title"); } else { - if(!$("#save_presentation_details").attr("title")){ - $("#save_presentation_details").attr("title",$("#save_presentation_details").attr("disabledTitle")); + if(typeof $("#save_presentation_details").attr("title") == "undefined"){ + $("#save_presentation_details").attr("title",V.I18n.getTrans("i.tooltip.continueDisabled")); } $("#save_presentation_details").addClass("buttonDisabledOnSettings"); $("#save_presentation_details").attr("disabled","true"); diff --git a/js/lang/translations.js b/js/lang/translations.js index 9368ab37..e24d1e2b 100644 --- a/js/lang/translations.js +++ b/js/lang/translations.js @@ -350,7 +350,8 @@ VISH.Locales = { "i.Zoom" : "Zoom", "i.Zoom-" : "Zoom-", "i.Zoom+" : "Zoom+", - "i.tooltip.QSInput" : "Enter a name for the live quiz", + "i.tooltip.continueDisabled" : "Write a title and choose an avatar to continue", + "i.tooltip.QSInput" : "Enter a name for the live quiz", "i.tooltip.UploadAttachment" : "If this button is disabled, you need to save your excursion first", "i.vtTitle_GStarted" : "Getting Started with ViSH Editor", "i.last" : "last" @@ -992,8 +993,9 @@ VISH.Locales = { "i.Zoom-" : "Ampliar-", "i.Zoom+" : "Ampliar+", //Tooltips - "i.tooltip.QSInput" : "Introduce un nombre para el cuestionario en vivo", - "i.tooltip.Help" : "Ayuda", + "i.tooltip.continueDisabled" : "Escribe un título y escoge un avatar para continuar", + "i.tooltip.QSInput" : "Introduce un nombre para el cuestionario en vivo", + "i.tooltip.Help" : "Ayuda", "i.tooltip.UploadAttachment" : "Si no puedes subir un archivo adjunto, guarda primero la excursión", //Video Tutorials "i.vtTitle_GStarted" : "Introducción a ViSH Editor",