Made all Survey gotoExpression textareas YUI resizable
This commit is contained in:
parent
bdbd0792ad
commit
17c4fdbe0c
4 changed files with 3 additions and 13 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -85,21 +85,11 @@ Survey.ObjectTemplate = (function(){
|
||||||
dialog.callback = Survey.Comm.callback;
|
dialog.callback = Survey.Comm.callback;
|
||||||
dialog.render();
|
dialog.render();
|
||||||
|
|
||||||
// if(type == 'question'){
|
var resizeGotoExpression = new YAHOO.util.Resize('resize_gotoExpression_formId');
|
||||||
// var resize = new YAHOO.util.Resize('resize_randomWords_formId');
|
resizeGotoExpression.on('resize', function(ev) {
|
||||||
// resize.on('resize', function(ev) {
|
|
||||||
// YAHOO.util.Dom.setStyle('randomWords_formId', 'width', (ev.width - 6) + "px");
|
|
||||||
// YAHOO.util.Dom.setStyle('randomWords_formId', 'height', (ev.height - 6) + "px");
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
if(type == 'answer'){
|
|
||||||
var resize = new YAHOO.util.Resize('resize_gotoExpression_formId');
|
|
||||||
resize.on('resize', function(ev) {
|
|
||||||
YAHOO.util.Dom.setStyle('gotoExpression_formId', 'width', (ev.width - 6) + "px");
|
YAHOO.util.Dom.setStyle('gotoExpression_formId', 'width', (ev.width - 6) + "px");
|
||||||
YAHOO.util.Dom.setStyle('gotoExpression_formId', 'height', (ev.height - 6) + "px");
|
YAHOO.util.Dom.setStyle('gotoExpression_formId', 'height', (ev.height - 6) + "px");
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
var textareaId = type + 'Text';
|
var textareaId = type + 'Text';
|
||||||
var textarea = YAHOO.util.Dom.get(textareaId);
|
var textarea = YAHOO.util.Dom.get(textareaId);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue