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 2014/12/09 17:41:13 UTC
svn commit: r1644120 - in /myfaces/tobago/trunk:
tobago-example/tobago-example-demo/src/main/webapp/content/60-command/
tobago-extension/tobago-sandbox/src/main/resources/org/apache/myfaces/tobago/sandbox/html/scarborough/standard/script/
tobago-theme/...
Author: lofwyr
Date: Tue Dec 9 16:41:12 2014
New Revision: 1644120
URL: http://svn.apache.org/r1644120
Log:
TOBAGO-1427: Misspelled JS utility method: selectWithJQuery()
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/60-command/command.js
myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/resources/org/apache/myfaces/tobago/sandbox/html/scarborough/standard/script/tobago.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie_6_0/script/tobago.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-in.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-popup.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-suggest.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tab.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tree.js
myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js
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-example/tobago-example-demo/src/main/webapp/content/60-command/command.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/60-command/command.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/60-command/command.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/60-command/command.js Tue Dec 9 16:41:12 2014
@@ -21,7 +21,7 @@ Demo.Command = {};
Demo.Command.prepareAlert = function (elements) {
- var commands = Tobago.Utils.selectWidthJQuery(elements, "[data-alert]");
+ var commands = Tobago.Utils.selectWithJQuery(elements, "[data-alert]");
commands.click(function () {
var command = jQuery(this);
var text = command.data("alert");
Modified: myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/resources/org/apache/myfaces/tobago/sandbox/html/scarborough/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/resources/org/apache/myfaces/tobago/sandbox/html/scarborough/standard/script/tobago.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/resources/org/apache/myfaces/tobago/sandbox/html/scarborough/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-extension/tobago-sandbox/src/main/resources/org/apache/myfaces/tobago/sandbox/html/scarborough/standard/script/tobago.js Tue Dec 9 16:41:12 2014
@@ -17,7 +17,7 @@
Tobago.SplitLayout = {
init: function(elements) {
- Tobago.Utils.selectWidthJQuery(elements, "[data-tobago-split-layout]").each(Tobago.SplitLayout.initLayout);
+ Tobago.Utils.selectWithJQuery(elements, "[data-tobago-split-layout]").each(Tobago.SplitLayout.initLayout);
},
initLayout: function() {
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie_6_0/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/msie_6_0/script/tobago.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie_6_0/script/tobago.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/msie_6_0/script/tobago.js Tue Dec 9 16:41:12 2014
@@ -23,13 +23,13 @@
Tobago.fixPngAlphaAll = function(elements) {
if (Tobago.browser.isMsie6) {
// fix png images
- var images = Tobago.Utils.selectWidthJQuery(elements, "img[src$='.png']");
+ var images = Tobago.Utils.selectWithJQuery(elements, "img[src$='.png']");
images.each(function() {
Tobago.fixPngAlpha(this);
});
// fix png backgrounds of the labels
- Tobago.Utils.selectWidthJQuery(elements,
+ Tobago.Utils.selectWithJQuery(elements,
"label.tobago-label-markup-fatal, label.tobago-label-markup-error, " +
"label.tobago-label-markup-warn, label.tobago-label-markup-info").each(function() {
Tobago.fixBackgroundPngAlpha(this);
@@ -103,7 +103,7 @@ Tobago.registerListener(Tobago.fixPngAlp
* tc:upload hangs when entering invalid filename in IE 6
*/
Tobago.File.initIe6 = function(elements) {
- var files = Tobago.Utils.selectWidthJQuery(elements, ".tobago-file-real");
+ var files = Tobago.Utils.selectWithJQuery(elements, ".tobago-file-real");
files.keydown(function () {
jQuery(this).blur();
return false;
@@ -122,7 +122,7 @@ Tobago.registerListener(Tobago.File.init
* Solves issue: TOBAGO-789
*/
Tobago.initIe6 = function(elements) {
- var selects = Tobago.Utils.selectWidthJQuery(elements, ".tobago-selectOneChoice");
+ var selects = Tobago.Utils.selectWithJQuery(elements, ".tobago-selectOneChoice");
selects.focusin(function () {
Tobago.fixSelectionOnFocusIn();
});
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.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-calendar.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-calendar.js Tue Dec 9 16:41:12 2014
@@ -19,7 +19,7 @@ Tobago.Calendar = {};
Tobago.Calendar.init = function (elements) {
// init next/prev buttons
- var buttons = Tobago.Utils.selectWidthJQuery(elements, ".tobago-calendar-header[data-tobago-command]");
+ var buttons = Tobago.Utils.selectWithJQuery(elements, ".tobago-calendar-header[data-tobago-command]");
buttons.each(function () {
var button = jQuery(this);
var step;
@@ -46,7 +46,7 @@ Tobago.Calendar.init = function (element
});
// click directly on a day
- var days = Tobago.Utils.selectWidthJQuery(elements, ".tobago-calendar-day");
+ var days = Tobago.Utils.selectWithJQuery(elements, ".tobago-calendar-day");
days.each(function () {
var day = jQuery(this);
day.click(function () {
@@ -58,14 +58,14 @@ Tobago.Calendar.init = function (element
});
// init from data field, if there is any (e. g. we are in date picker popup)
- var calendarWithDateField = Tobago.Utils.selectWidthJQuery(elements, ".tobago-calendar[data-tobago-date-input-id]");
+ var calendarWithDateField = Tobago.Utils.selectWithJQuery(elements, ".tobago-calendar[data-tobago-date-input-id]");
calendarWithDateField.each(function () {
var calendar = jQuery(this);
Tobago.Calendar.initFromDateField(calendar);
});
var okButton
- = Tobago.Utils.selectWidthJQuery(elements, ".tobago-calendar").parent().find("button[data-tobago-date-picker-ok]");
+ = Tobago.Utils.selectWithJQuery(elements, ".tobago-calendar").parent().find("button[data-tobago-date-picker-ok]");
okButton.click(function () {
var button = jQuery(this);
var calendar = button.parent().parent().find(".tobago-calendar");
@@ -301,7 +301,7 @@ Tobago.Time = {};
Tobago.Time.init = function (elements) {
// time input fields
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-time-input")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-time-input")
.not("[disabled]").not("[readonly]")
.focus(function () {
Tobago.Time.focus(jQuery(this));
@@ -314,21 +314,21 @@ Tobago.Time.init = function (elements) {
});
// increment button
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-time-incImage")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-time-incImage")
.not("[disabled]").not("[readonly]")
.click(function () {
Tobago.Time.increment(jQuery(this));
});
// decrement button
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-time-decImage")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-time-decImage")
.not("[disabled]").not("[readonly]")
.click(function () {
Tobago.Time.decrement(jQuery(this));
});
// init from data field, if there is any (e. g. we are in date picker popup)
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-time[data-tobago-date-input-id]")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-time[data-tobago-date-input-id]")
.each(function () {
Tobago.Time.initFromDateField(jQuery(this));
});
@@ -490,7 +490,7 @@ Tobago.DateTime.init = function (element
// time input fields
// jQuery.datepicker.setDefaults(jQuery.datepicker.regional['de']);
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-date, .tobago-time")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-date, .tobago-time")
.not("[disabled]")
.not("[readonly]")
.not("[data-tobago-classic-date-time-picker]")
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-in.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-in.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-in.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-in.js Tue Dec 9 16:41:12 2014
@@ -24,25 +24,25 @@ Tobago.In = function(inId, required, req
};
Tobago.In.init = function(elements) {
- var ins = Tobago.Utils.selectWidthJQuery(elements, ".tobago-in");
+ var ins = Tobago.Utils.selectWithJQuery(elements, ".tobago-in");
ins.each(function(){
var id = jQuery(this).attr("id");
var required = jQuery(this).attr("required") != undefined;
new Tobago.In(id, required, 'tobago-in-markup-required');
});
- ins = Tobago.Utils.selectWidthJQuery(elements, ".tobago-date");
+ ins = Tobago.Utils.selectWithJQuery(elements, ".tobago-date");
ins.each(function(){
var id = jQuery(this).attr("id");
var required = jQuery(this).attr("required") != undefined;
new Tobago.In(id, required, 'tobago-date-markup-required');
});
- ins = Tobago.Utils.selectWidthJQuery(elements, "input.tobago-time");
+ ins = Tobago.Utils.selectWithJQuery(elements, "input.tobago-time");
ins.each(function(){
var id = jQuery(this).attr("id");
var required = jQuery(this).attr("required") != undefined;
new Tobago.In(id, required, 'tobago-time-markup-required');
});
- ins = Tobago.Utils.selectWidthJQuery(elements, ".tobago-textarea");
+ ins = Tobago.Utils.selectWithJQuery(elements, ".tobago-textarea");
ins.each(function(){
var id = jQuery(this).attr("id");
var required = jQuery(this).attr("required") != undefined;
@@ -139,7 +139,7 @@ jQuery.support.placeholder = (function()
Tobago.In.initPlaceholder = function(elements) {
if (!jQuery.support.placeholder) {
- var fields = Tobago.Utils.selectWidthJQuery(elements, "[placeholder]");
+ var fields = Tobago.Utils.selectWithJQuery(elements, "[placeholder]");
fields.each(function () {
jQuery(this)
.on("focus", function () {
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.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-menu.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-menu.js Tue Dec 9 16:41:12 2014
@@ -301,7 +301,7 @@ Tobago.Menu.switchOff = function(menuBar
*/
Tobago.Menu.init = function(elements) {
- var menus = Tobago.Utils.selectWidthJQuery(elements, ".tobago-menu-markup-top");
+ var menus = Tobago.Utils.selectWithJQuery(elements, ".tobago-menu-markup-top");
// a click on the top menu make the complete menu active or inactive respectively.
menus.click(function(event) {
@@ -324,7 +324,7 @@ Tobago.Menu.init = function(elements) {
});
// selectOne
- var selectOne = Tobago.Utils.selectWidthJQuery(elements, ".tobago-menu-selectOne");
+ var selectOne = Tobago.Utils.selectWithJQuery(elements, ".tobago-menu-selectOne");
selectOne.click(function() {
var menu = jQuery(this);
var hidden = menu.nextAll("input[type=hidden]").first();
@@ -333,7 +333,7 @@ Tobago.Menu.init = function(elements) {
});
// selectBoolean
- var selectBoolean = Tobago.Utils.selectWidthJQuery(elements, ".tobago-menu-selectBoolean");
+ var selectBoolean = Tobago.Utils.selectWithJQuery(elements, ".tobago-menu-selectBoolean");
selectBoolean.click(function() {
var menu = jQuery(this);
var hidden = menu.nextAll("input[type=hidden]").first();
@@ -363,14 +363,14 @@ Tobago.Menu.init = function(elements) {
if (elements) {
// this is ajax case: the commands are just removed from elements and therefore not handled by Tobago.initDom,
// so do it here
- Tobago.Utils.selectWidthJQuery(subMenuContainer, '[data-tobago-commands]')
+ Tobago.Utils.selectWithJQuery(subMenuContainer, '[data-tobago-commands]')
.each(function () {Tobago.initCommand(jQuery(this));});
}
});
// jQuery(".tobago-page-menuStore").append(menus.children("ol"));
- var toolBarMenu = Tobago.Utils.selectWidthJQuery(
+ var toolBarMenu = Tobago.Utils.selectWithJQuery(
elements, ".tobago-toolBar-menu, .tobago-boxToolBar-menu, .tobago-tabGroupToolBar-menu, .tobago-column-menu");
// a click on toolBar menu opener -> forward to .tobago-menu-markup-top
toolBarMenu.click(function(event) {
@@ -380,7 +380,7 @@ Tobago.Menu.init = function(elements) {
});
// init context menus
- var contextMenu = Tobago.Utils.selectWidthJQuery(elements, ".tobago-menu-contextMenu");
+ var contextMenu = Tobago.Utils.selectWithJQuery(elements, ".tobago-menu-contextMenu");
contextMenu.parent().bind("contextmenu", function(event) {
jQuery(this).children(".tobago-menu-contextMenu").find('a').click();
event.stopPropagation();
@@ -391,7 +391,7 @@ Tobago.Menu.init = function(elements) {
var menu;
if (elements) {
// this is ajax case: the commands are just removed from elements, so get them from the data store
- menu = Tobago.Utils.selectWidthJQuery(elements, ".tobago-menu-markup-top")
+ menu = Tobago.Utils.selectWithJQuery(elements, ".tobago-menu-markup-top")
.tobagoMenu_findSubMenu().find('.tobago-menu').andSelf();
} else {
menu = jQuery(".tobago-menu").not(".tobago-menu-markup-top");
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-popup.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-popup.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-popup.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-popup.js Tue Dec 9 16:41:12 2014
@@ -88,7 +88,7 @@ Tobago.Popup.init = function (elements)
// not activated for IE 6 and 7, because the handling isn't smooth.
} else {
// enable drag-and-drop for popups
- var popups = Tobago.Utils.selectWidthJQuery(elements, ".tobago-popup");
+ var popups = Tobago.Utils.selectWithJQuery(elements, ".tobago-popup");
// The box header is the drag handle (may change)
popups.find(".tobago-box-header")
.mousedown(function (event) {
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=1644120&r1=1644119&r2=1644120&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 Tue Dec 9 16:41:12 2014
@@ -59,7 +59,7 @@ Tobago.Sheet = function(
Tobago.Sheet.init = function(elements) {
console.time("[tobago-sheet] init"); // @DEV_ONLY
- var sheets = Tobago.Utils.selectWidthJQuery(elements, ".tobago-sheet");
+ var sheets = Tobago.Utils.selectWithJQuery(elements, ".tobago-sheet");
sheets.each(function initSheets() {
var sheet = jQuery(this);
var id = sheet.attr("id");
@@ -77,17 +77,17 @@ Tobago.Sheet.init = function(elements) {
Tobago.Sheet.setup2(sheets);
var commands;
- commands = Tobago.Utils.selectWidthJQuery(elements, ".tobago-menu-markup-sheetSelectAll");
+ commands = Tobago.Utils.selectWithJQuery(elements, ".tobago-menu-markup-sheetSelectAll");
commands.click(function() {
var sheet = jQuery(Tobago.Utils.escapeClientId(jQuery(this).data("tobago-sheet-id")));
Tobago.Sheet.selectAll(sheet);
});
- commands = Tobago.Utils.selectWidthJQuery(elements, ".tobago-menu-markup-sheetDeselectAll");
+ commands = Tobago.Utils.selectWithJQuery(elements, ".tobago-menu-markup-sheetDeselectAll");
commands.click(function() {
var sheet = jQuery(Tobago.Utils.escapeClientId(jQuery(this).data("tobago-sheet-id")));
Tobago.Sheet.deselectAll(sheet);
});
- commands = Tobago.Utils.selectWidthJQuery(elements, ".tobago-menu-markup-sheetToggleAll");
+ commands = Tobago.Utils.selectWithJQuery(elements, ".tobago-menu-markup-sheetToggleAll");
commands.click(function() {
var sheet = jQuery(Tobago.Utils.escapeClientId(jQuery(this).data("tobago-sheet-id")));
Tobago.Sheet.toggleAll(sheet);
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-suggest.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-suggest.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-suggest.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-suggest.js Tue Dec 9 16:41:12 2014
@@ -19,7 +19,7 @@ Tobago.Suggest = {};
Tobago.Suggest.init = function (elements) {
- var suggests = Tobago.Utils.selectWidthJQuery(elements, ".tobago-suggest");
+ var suggests = Tobago.Utils.selectWithJQuery(elements, ".tobago-suggest");
suggests.each(function () {
jQuery(this).suggest();
});
@@ -38,7 +38,7 @@ Tobago.registerListener({
// after: ["c", "d"],
phases: [Tobago.Phase.DOCUMENT_READY, Tobago.Phase.AFTER_UPDATE],
call: function(elements) {
- var suggests = Tobago.Utils.selectWidthJQuery(elements, ".tobago-suggest");
+ var suggests = Tobago.Utils.selectWithJQuery(elements, ".tobago-suggest");
suggests.each(function () {
jQuery(this).suggest();
});
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tab.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-tab.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tab.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tab.js Tue Dec 9 16:41:12 2014
@@ -23,7 +23,7 @@ Tobago.TabGroup = {};
*/
Tobago.TabGroup.init = function(elements) {
- var tabGroups = Tobago.Utils.selectWidthJQuery(elements, ".tobago-tabGroup");
+ var tabGroups = Tobago.Utils.selectWithJQuery(elements, ".tobago-tabGroup");
// initialize the tab header elements
// client case
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tree.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-tree.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tree.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-tree.js Tue Dec 9 16:41:12 2014
@@ -105,12 +105,12 @@ Tobago.Tree.showChildren = function (nod
Tobago.Tree.init = function(elements) {
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeNode-markup-folder .tobago-treeNode-toggle").click(function() {
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-treeNode-markup-folder .tobago-treeNode-toggle").click(function() {
Tobago.Tree.toggleNode(jQuery(this));
return false;
});
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeMenuNode-markup-folder .tobago-treeMenuNode-toggle")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-treeMenuNode-markup-folder .tobago-treeMenuNode-toggle")
.parent().each(function() {
// if there is no command, than the whole node element should be the toggle
var toggle = jQuery(this).children(".tobago-treeMenuCommand").size() == 0
@@ -122,12 +122,12 @@ Tobago.Tree.init = function(elements) {
});
// normal hover effect (not possible with CSS in IE 6)
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeMenuNode").hover(function() {
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-treeMenuNode").hover(function() {
jQuery(this).toggleClass("tobago-treeMenuNode-markup-hover");
});
// selected for treeNode
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeCommand").focus(function() {
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-treeCommand").focus(function() {
var command = jQuery(this);
var node = command.parent(".tobago-treeNode");
var tree = node.closest(".tobago-tree");
@@ -138,7 +138,7 @@ Tobago.Tree.init = function(elements) {
});
// selected for treeSelect
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeSelect > input").change(function () {
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-treeSelect > input").change(function () {
var select = jQuery(this);
var selected = select.prop("checked");
var data = select.closest(".tobago-treeMenu, .tobago-tree, .tobago-sheet");
@@ -156,7 +156,7 @@ Tobago.Tree.init = function(elements) {
});
// selected for treeMenuNode
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeMenuCommand").focus(function() {
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-treeMenuCommand").focus(function() {
var command = jQuery(this);
var node = command.parent(".tobago-treeMenuNode");
var tree = node.closest(".tobago-treeMenu");
@@ -167,7 +167,7 @@ Tobago.Tree.init = function(elements) {
});
// init selected field
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeMenu, .tobago-tree, .tobago-sheet").each(function() {
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-treeMenu, .tobago-tree, .tobago-sheet").each(function() {
var hidden = jQuery(this).children(".tobago-treeMenu-selected, .tobago-tree-selected, .tobago-sheet-selected");
var string = ",";
jQuery(this).find(".tobago-treeMenuNode-markup-selected, .tobago-treeNode-markup-selected").each(function() {
@@ -177,7 +177,7 @@ Tobago.Tree.init = function(elements) {
});
// init expanded field
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeMenu, .tobago-tree, .tobago-sheet").each(function() {
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-treeMenu, .tobago-tree, .tobago-sheet").each(function() {
var hidden = jQuery(this).children(".tobago-treeMenu-expanded, .tobago-tree-expanded, .tobago-sheet-expanded");
var string = ",";
jQuery(this).find(".tobago-treeMenuNode-markup-expanded, .tobago-treeNode-markup-expanded").each(function() {
@@ -187,7 +187,7 @@ Tobago.Tree.init = function(elements) {
});
// init tree selection for multiCascade
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-tree[data-tobago-selectable=multiCascade]").each(function() {
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-tree[data-tobago-selectable=multiCascade]").each(function() {
var tree = jQuery(this);
tree.find("input[type=checkbox]").each(function() {
jQuery(this).change(function(event) {
@@ -237,7 +237,7 @@ Tobago.TreeListbox = {};
Tobago.TreeListbox.init = function(elements) {
- var treeListbox = Tobago.Utils.selectWidthJQuery(elements, ".tobago-treeListbox");
+ var treeListbox = Tobago.Utils.selectWithJQuery(elements, ".tobago-treeListbox");
// hide select tags for level > root
treeListbox.children().find("select:not(:first)").hide();
Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.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-utils.js?rev=1644120&r1=1644119&r2=1644120&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-utils.js Tue Dec 9 16:41:12 2014
@@ -27,7 +27,7 @@ Tobago.Utils.escapeClientId = function(i
};
/**
- * @deprecated since Tobago 2.0.5 because of spelling
+ * @deprecated since Tobago 2.0.5 because of misspelling
*/
Tobago.Utils.selectWidthJQuery = function(elements, selector) {
return Tobago.Utils.selectWithJQuery(elements, selector);
@@ -47,10 +47,10 @@ Tobago.Utils.selectWithJQuery = function
if (Tobago.browser.isMsie678) {
if (selector.match(/^\[[-_a-zA-Z0-9]+\]$/)) {
- return Tobago.Utils.ieSelectWidthJQueryAttr(elements, selector);
+ return Tobago.Utils.ieSelectWithJQueryAttr(elements, selector);
}
if (selector == Tobago.Command.INPUTS_FOR_DEFAULT) {
- return Tobago.Utils.ieSelectWidthJQueryInputs(elements);
+ return Tobago.Utils.ieSelectWithJQueryInputs(elements);
}
}
@@ -58,7 +58,7 @@ Tobago.Utils.selectWithJQuery = function
};
/** internal function for IE <= 8 performance */
-Tobago.Utils.ieSelectWidthJQueryAttr = function (elements, selector) {
+Tobago.Utils.ieSelectWithJQueryAttr = function (elements, selector) {
var founds = [];
for (var i = 0; i < elements.length; i++) {
Tobago.Utils.ieFilterAttributes(elements.get(i), selector.substr(1, selector.length - 2), founds);
@@ -67,7 +67,7 @@ Tobago.Utils.ieSelectWidthJQueryAttr = f
};
/** internal function for IE <= 8 performance */
-Tobago.Utils.ieSelectWidthJQueryInputs = function(elements) {
+Tobago.Utils.ieSelectWithJQueryInputs = function(elements) {
var founds = [];
for (var i = 0; i < elements.length; i++) {
var element = elements.get(i);
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=1644120&r1=1644119&r2=1644120&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 Tue Dec 9 16:41:12 2014
@@ -883,7 +883,7 @@ var Tobago = {
initDom: function(elements) {
// focus
- var autofocus = Tobago.Utils.selectWidthJQuery(elements, '[autofocus]');
+ var autofocus = Tobago.Utils.selectWithJQuery(elements, '[autofocus]');
autofocus.each(function () {
// setupFocus
Tobago.focusId = jQuery(this).attr("id");
@@ -891,12 +891,12 @@ var Tobago = {
});
// commands
- Tobago.Utils.selectWidthJQuery(elements, '[data-tobago-commands]')
+ Tobago.Utils.selectWithJQuery(elements, '[data-tobago-commands]')
.each(function () {Tobago.initCommand(jQuery(this));});
/*
// access keys
- var accesskeys = Tobago.Utils.selectWidthJQuery(elements, '[accesskey]');
+ var accesskeys = Tobago.Utils.selectWithJQuery(elements, '[accesskey]');
accesskeys.each(function () {
// setupAccessKey
var el = jQuery(this);
@@ -938,7 +938,7 @@ var Tobago = {
initCss: function(elements) {
// element styles
console.time("[tobago] initCss"); // @DEV_ONLY
- Tobago.Utils.selectWidthJQuery(elements, "[data-tobago-style]").each(function () {
+ Tobago.Utils.selectWithJQuery(elements, "[data-tobago-style]").each(function () {
var element = jQuery(this);
if (Tobago.browser.isMsie678) { // IE before 9 doesn't support multiple backgrounds, so we use only the first.
Tobago.fixMultiBackgroundIE8(element);
@@ -1005,11 +1005,11 @@ var Tobago = {
},
/**
- * @deprecated Please use Tobago.Utils.selectWidthJQuery()
+ * @deprecated Please use Tobago.Utils.selectWithJQuery()
*/
- selectWidthJQuery: function(elements, selector) {
- console.warn("Deprecated method was called. Please use Tobago.Utils.selectWidthJQuery()"); // @DEV_ONLY
- return Tobago.Utils.selectWidthJQuery(elements, selector);
+ selectWithJQuery: function(elements, selector) {
+ console.warn("Deprecated method was called. Please use Tobago.Utils.selectWithJQuery()"); // @DEV_ONLY
+ return Tobago.Utils.selectWithJQuery(elements, selector);
},
ensureScrollbarWeights: function() {
@@ -1668,7 +1668,7 @@ Tobago.Panel = function(panelId, enableA
};
Tobago.Panel.init = function(elements) {
- var reloads = Tobago.Utils.selectWidthJQuery(elements, ".tobago-panel[data-tobago-reload]");
+ var reloads = Tobago.Utils.selectWithJQuery(elements, ".tobago-panel[data-tobago-reload]");
reloads.each(function(){
var id = jQuery(this).attr("id");
var period = jQuery(this).data("tobago-reload");
@@ -2333,7 +2333,7 @@ Tobago.ToolBar.init = function(elements)
// doing the same for 3 renderer names
// XXX put this in a loop (the first try doesn't work, because we can't use local variables in a anonymous function)
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-toolBar").find('.tobago-toolBar-item')
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-toolBar").find('.tobago-toolBar-item')
.not('.tobago-toolBar-item-markup-disabled')
.hover(function() {
jQuery(this).toggleClass('tobago-toolBar-item-markup-hover');
@@ -2363,7 +2363,7 @@ Tobago.ToolBar.init = function(elements)
});
});
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-box-headerToolBar").find('.tobago-boxToolBar-item')
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-box-headerToolBar").find('.tobago-boxToolBar-item')
.not('.tobago-boxToolBar-item-markup-disabled')
.hover(function() {
jQuery(this).toggleClass('tobago-boxToolBar-item-markup-hover');
@@ -2393,7 +2393,7 @@ Tobago.ToolBar.init = function(elements)
});
});
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-tabGroup-toolBar")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-tabGroup-toolBar")
.find(".tobago-menu[data-tobago-index]").each(function () {
var menu = jQuery(this);
menu.data("tobago-tabGroup", menu.closest(".tobago-tabGroup"));
@@ -2406,7 +2406,7 @@ Tobago.ToolBar.init = function(elements)
})
});
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-tabGroup-toolBar").find('.tobago-tabGroupToolBar-item')
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-tabGroup-toolBar").find('.tobago-tabGroupToolBar-item')
.not('.tobago-tabGroupToolBar-item-markup-disabled')
.hover(function() {
jQuery(this).toggleClass('tobago-tabGroupToolBar-item-markup-hover');
@@ -2436,14 +2436,14 @@ Tobago.ToolBar.init = function(elements)
});
});
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-toolBar-selectOne").find(".tobago-toolBar-button")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-toolBar-selectOne").find(".tobago-toolBar-button")
.click(function () {
var button = jQuery(this);
var hidden = button.closest(".tobago-toolBar-selectOne").children("input[type=hidden]");
hidden.val(button.data("tobago-value"));
});
- Tobago.Utils.selectWidthJQuery(elements, ".tobago-toolBar-selectBoolean").find(".tobago-toolBar-button")
+ Tobago.Utils.selectWithJQuery(elements, ".tobago-toolBar-selectBoolean").find(".tobago-toolBar-button")
.click(function () {
var button = jQuery(this);
var hidden = button.closest(".tobago-toolBar-selectBoolean").children("input[type=hidden]");
@@ -2476,7 +2476,7 @@ Tobago.registerListener(Tobago.ToolBar.i
Tobago.Command = {};
Tobago.Command.initEnter = function(elements) {
- var page = Tobago.Utils.selectWidthJQuery(elements, ".tobago-page");
+ var page = Tobago.Utils.selectWithJQuery(elements, ".tobago-page");
page.keypress(function (event) {
var code = event.which;
if (code == 0) {
@@ -2508,7 +2508,7 @@ Tobago.Command.initEnter = function(elem
Tobago.Command.INPUTS_FOR_DEFAULT = "input, select, textarea, a, button";
Tobago.Command.initInputElements = function(elements) {
- var inputElements = Tobago.Utils.selectWidthJQuery(elements, Tobago.Command.INPUTS_FOR_DEFAULT);
+ var inputElements = Tobago.Utils.selectWithJQuery(elements, Tobago.Command.INPUTS_FOR_DEFAULT);
inputElements.focus(function (event) {
var target = event.target;
var id = target.id;
@@ -2566,7 +2566,7 @@ Tobago.SelectManyShuttle = {};
Tobago.SelectManyShuttle.init = function(elements) {
- var shuttles = Tobago.Utils.selectWidthJQuery(elements, ".tobago-selectManyShuttle:not(.tobago-selectManyShuttle-disabled)");
+ var shuttles = Tobago.Utils.selectWithJQuery(elements, ".tobago-selectManyShuttle:not(.tobago-selectManyShuttle-disabled)");
shuttles.find(".tobago-selectManyShuttle-unselected").dblclick(function() {
Tobago.SelectManyShuttle.moveSelectedItems(jQuery(this).parents(".tobago-selectManyShuttle"), true, false);
@@ -2625,7 +2625,7 @@ Tobago.registerListener(Tobago.SelectMan
Tobago.SelectOneRadio = {};
Tobago.SelectOneRadio.init = function(elements) {
- var selectOneRadios = Tobago.Utils.selectWidthJQuery(elements, ".tobago-selectOneRadio");
+ var selectOneRadios = Tobago.Utils.selectWithJQuery(elements, ".tobago-selectOneRadio");
selectOneRadios.each(function() {
var ul = jQuery(this);
var radios = jQuery('input[name="' + ul.attr('id').replace(/:/g, '\\:') + '"]');
@@ -2670,7 +2670,7 @@ Tobago.registerListener(Tobago.SelectOne
Tobago.SelectOneListbox = {};
Tobago.SelectOneListbox.init = function (elements) {
- var selects = Tobago.Utils.selectWidthJQuery(elements, ".tobago-selectOneListbox");
+ var selects = Tobago.Utils.selectWithJQuery(elements, ".tobago-selectOneListbox");
var notRequired = selects.not(".tobago-selectOneListbox-markup-required");
notRequired
.change(function () {
@@ -2696,7 +2696,7 @@ Tobago.registerListener(Tobago.SelectOne
Tobago.SelectBooleanCheckbox = {};
Tobago.SelectBooleanCheckbox.init = function(elements) {
- var checkboxes = Tobago.Utils.selectWidthJQuery(elements, ".tobago-selectBooleanCheckbox-markup-readonly input");
+ var checkboxes = Tobago.Utils.selectWithJQuery(elements, ".tobago-selectBooleanCheckbox-markup-readonly input");
checkboxes.each(function() {
// Save the initial state to restore it, when the user tries to manipulate it.
var initial = jQuery(this).is(":checked");
@@ -2714,7 +2714,7 @@ Tobago.registerListener(Tobago.SelectBoo
Tobago.SelectManyCheckbox = {};
Tobago.SelectManyCheckbox.init = function(elements) {
- var checkboxes = Tobago.Utils.selectWidthJQuery(elements, ".tobago-selectManyCheckbox-markup-readonly input");
+ var checkboxes = Tobago.Utils.selectWithJQuery(elements, ".tobago-selectManyCheckbox-markup-readonly input");
checkboxes.each(function() {
// Save the initial state to restore it, when the user tries to manipulate it.
var initial = jQuery(this).is(":checked");
@@ -2732,7 +2732,7 @@ Tobago.registerListener(Tobago.SelectMan
Tobago.File = {};
Tobago.File.init = function(elements) {
- var files = Tobago.Utils.selectWidthJQuery(elements, ".tobago-file-real");
+ var files = Tobago.Utils.selectWithJQuery(elements, ".tobago-file-real");
files.change(function () {
var file = jQuery(this);
var pretty = file.prev();