You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/10/05 08:18:04 UTC
svn commit: r1763361 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Author: lofwyr
Date: Wed Oct 5 08:18:04 2016
New Revision: 1763361
URL: http://svn.apache.org/viewvc?rev=1763361&view=rev
Log:
cleanup unused code
Modified:
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=1763361&r1=1763360&r2=1763361&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Wed Oct 5 08:18:04 2016
@@ -1280,47 +1280,8 @@ Tobago.Command.initEnter = function(elem
}
})};
-Tobago.Command.initInputElements = function(elements) {
- var inputElements = Tobago.Utils.selectWithJQuery(elements, "input, select, textarea, a, button");
- inputElements.focus(function (event) {
- var target = event.target;
- var id = target.id;
- var command;
- if (target.tagName == "A" || target.tagName == "BUTTON") {
- command = jQuery(target);
- } else {
- while (id != null) {
- command = jQuery("[data-tobago-default='" + id + "']");
- if (command.size() > 0) {
- break;
- }
- id = Tobago.Utils.getNamingContainerId(id);
- }
- }
- });
- inputElements.blur(function (event) {
- var target = event.target;
- var id = target.id;
- var command;
- if (target.tagName == "A" || target.tagName == "BUTTON") {
- command = jQuery(target);
- } else {
- while (id != null) {
- command = jQuery("[data-tobago-default='" + id + "']");
- if (command.size() > 0) {
- break;
- }
- id = Tobago.Utils.getNamingContainerId(id);
- }
- }
- });
-};
-
Tobago.registerListener(Tobago.Command.initEnter, Tobago.Phase.DOCUMENT_READY);
-Tobago.registerListener(Tobago.Command.initInputElements, Tobago.Phase.DOCUMENT_READY);
-Tobago.registerListener(Tobago.Command.initInputElements, Tobago.Phase.AFTER_UPDATE);
-
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Tobago.SelectManyShuttle = {};