Skip to content

Commit

Permalink
Gallery Build Tag: gallery-2010.08.04-19-46
Browse files Browse the repository at this point in the history
  • Loading branch information
YUI Builder committed Aug 4, 2010
1 parent 21d1c89 commit 0be2276
Show file tree
Hide file tree
Showing 14 changed files with 83 additions and 37 deletions.
4 changes: 2 additions & 2 deletions build/gallery-exprbuilder/gallery-exprbuilder-debug.js
Expand Up @@ -541,7 +541,7 @@ Y.extend(ExpressionBuilder, Y.Widget,
{
var markup =
'<div class="{td}">' +
'<textarea id="{tid}" name="{tn}" class="{ta}"></textarea>' +
'<textarea id="{tid}" name="{tn}" class="formmgr-field {ta}"></textarea>' +
'</div>' +
'<div class="{fctl}">' +
'<button class="{pc}">{paren}</button>' +
Expand Down Expand Up @@ -603,4 +603,4 @@ Y.extend(ExpressionBuilder, Y.Widget,
Y.ExpressionBuilder = ExpressionBuilder;


}, 'gallery-2010.06.23-18-37' ,{requires:['gallery-querybuilder','gallery-formmgr']});
}, 'gallery-2010.08.04-19-46' ,{requires:['gallery-querybuilder','gallery-formmgr']});
2 changes: 1 addition & 1 deletion build/gallery-exprbuilder/gallery-exprbuilder-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/gallery-exprbuilder/gallery-exprbuilder.js
Expand Up @@ -541,7 +541,7 @@ Y.extend(ExpressionBuilder, Y.Widget,
{
var markup =
'<div class="{td}">' +
'<textarea id="{tid}" name="{tn}" class="{ta}"></textarea>' +
'<textarea id="{tid}" name="{tn}" class="formmgr-field {ta}"></textarea>' +
'</div>' +
'<div class="{fctl}">' +
'<button class="{pc}">{paren}</button>' +
Expand Down Expand Up @@ -603,4 +603,4 @@ Y.extend(ExpressionBuilder, Y.Widget,
Y.ExpressionBuilder = ExpressionBuilder;


}, 'gallery-2010.06.23-18-37' ,{requires:['gallery-querybuilder','gallery-formmgr']});
}, 'gallery-2010.08.04-19-46' ,{requires:['gallery-querybuilder','gallery-formmgr']});
33 changes: 28 additions & 5 deletions build/gallery-formmgr/gallery-formmgr-debug.js
Expand Up @@ -199,14 +199,23 @@ FormManager.integer_value_re = /^[-+]?[0-9]+$/;
FormManager.decimal_value_re = /^[-+]?(?:[0-9]+\.?|[0-9]*\.[0-9]+)$/;

/**
* The CSS class which marks each row of the form. Typically, each element
* (or a very tightly coupled set of elements) is placed in a separate row.
* The CSS class which marks each row of the form. Typically, each field
* (or a very tightly coupled set of fields) is placed in a separate row.
*
* @property Y.FormManager.row_marker_class
* @type {String}
*/
FormManager.row_marker_class = 'formmgr-row';

/**
* The CSS class which marks each field in a row of the form. This enables
* messaging when multiple fields are in a single row.
*
* @property Y.FormManager.field_marker_class
* @type {String}
*/
FormManager.field_marker_class = 'formmgr-field';

/**
* The CSS class which marks the container for the status message within a
* row of the form.
Expand Down Expand Up @@ -1255,6 +1264,8 @@ FormManager.prototype =
{
p.all('.'+FormManager.status_marker_class).set('innerHTML', '');
p.removeClass(row_status_pattern);

p.all('.'+FormManager.field_marker_class).removeClass(row_status_pattern);
}
}

Expand Down Expand Up @@ -1286,13 +1297,25 @@ FormManager.prototype =
var p = e.ancestor('.'+FormManager.row_marker_class);
if (p && FormManager.statusTakesPrecendence(FormManager.getElementStatus(p), type))
{
var f = p.all('.'+FormManager.field_marker_class);
if (f)
{
f.removeClass(row_status_pattern);
}

if (msg)
{
p.one('.'+FormManager.status_marker_class).set('innerHTML', msg);
}

p.removeClass(row_status_pattern);
p.addClass(FormManager.row_status_prefix + type);
var new_class = FormManager.row_status_prefix + type;
p.replaceClass(row_status_pattern, new_class);

f = e.ancestor('.'+FormManager.field_marker_class, true);
if (f)
{
f.replaceClass(row_status_pattern, new_class);
}

var fieldset = e.ancestor('fieldset');
if (fieldset && FormManager.statusTakesPrecendence(FormManager.getElementStatus(fieldset), type))
Expand Down Expand Up @@ -1375,4 +1398,4 @@ FormManager.prototype =
Y.FormManager = FormManager;


}, 'gallery-2010.06.02-18-59' ,{requires:['node-base','substitute']});
}, 'gallery-2010.08.04-19-46' ,{requires:['node-base','substitute']});

0 comments on commit 0be2276

Please sign in to comment.