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/08/30 11:02:19 UTC
svn commit: r1378861 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
Author: lofwyr
Date: Thu Aug 30 09:02:19 2012
New Revision: 1378861
URL: http://svn.apache.org/viewvc?rev=1378861&view=rev
Log:
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-sheet.js
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.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-sheet.js?rev=1378861&r1=1378860&r2=1378861&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js Thu Aug 30 09:02:19 2012
@@ -84,11 +84,7 @@ Tobago.Sheet.init = function(elements) {
sheets.each(function initSheets() {
var sheet = jQuery(this);
var id = sheet.attr("id");
- var frequency;
- var frequencyStr = sheet.attr("data-tobago-reload");
- if (frequencyStr != undefined) {
- frequency = parseInt(frequencyStr);
- }
+ var frequency = sheet.data("tobago-reload");
var selectionMode = sheet.data("tobago-selectionmode");
var commands = sheet.data("tobago-rowaction");
var click = commands.click;