Source
145
145
if (!$curr_control.data('is-activated')) {
146
146
$('.btn-undo', $container).show();
147
147
$curr_control.data('is-activated', true);
148
148
}
149
149
150
150
$curr_control.replaceWith($('<textarea>')
151
151
.addClass('textarea-flexible')
152
152
.attr({
153
153
id: $input.attr('id'),
154
154
name: $input.attr('name'),
155
+
placeholder: t('value'),
155
156
maxlength: $input.attr('maxlength')
156
157
})
157
158
.text($input.is(':disabled') ? '' : $input.val())
158
159
.on('focus blur', btnUndoFocusEventHandle)
159
160
);
160
161
161
162
$('.textarea-flexible', $container).textareaFlexible();
162
163
}
163
164
}
164
165