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 2012/07/25 10:28:55 UTC
svn commit: r1365487 -
/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 Jul 25 08:28:54 2012
New Revision: 1365487
URL: http://svn.apache.org/viewvc?rev=1365487&view=rev
Log:
jQuery: using .data() instead of .attr()
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=1365487&r1=1365486&r2=1365487&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 Jul 25 08:28:54 2012
@@ -941,7 +941,7 @@ var Tobago = {
var commandButtons = Tobago.Utils.selectWidthJQuery(elements, '[data-tobago-action]');
commandButtons.each(function setupInputFacetCommand() {
var command = jQuery(this);
- var text = command.attr("data-tobago-action");
+ var text = command.data("tobago-action");
var commands = jQuery.parseJSON(text);
if (commands.click) {
@@ -1639,7 +1639,7 @@ Tobago.Panel.init = function(elements) {
var reloads = Tobago.Utils.selectWidthJQuery(elements, ".tobago-panel[data-tobago-reload]");
reloads.each(function(){
var id = jQuery(this).attr("id");
- var frequency = parseInt(jQuery(this).attr("data-tobago-reload"));
+ var frequency = parseInt(jQuery(this).data("tobago-reload"));
new Tobago.Panel(id, true, frequency);
});
};