mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-27 14:58:13 +08:00
For bug 73531
This commit is contained in:
@ -74,7 +74,8 @@ define([
|
||||
validateOnBlur: true,
|
||||
disabled: false,
|
||||
editable: true,
|
||||
hideErrorOnInput: false
|
||||
hideErrorOnInput: false,
|
||||
dir: ''
|
||||
},
|
||||
|
||||
template: _.template([
|
||||
@ -88,6 +89,9 @@ define([
|
||||
'data-hint="<%= dataHint %>"',
|
||||
'data-hint-direction="<%= dataHintDirection %>"',
|
||||
'data-hint-offset="<%= dataHintOffset %>"',
|
||||
'<% if (dir) {%>',
|
||||
'dir="<%= dir %>" ',
|
||||
'<% } %>',
|
||||
'>',
|
||||
'<span class="input-error"></span>',
|
||||
'</div>'
|
||||
@ -140,6 +144,7 @@ define([
|
||||
dataHint : this.options.dataHint,
|
||||
dataHintDirection: this.options.dataHintDirection,
|
||||
dataHintOffset: this.options.dataHintOffset,
|
||||
dir: this.options.dir,
|
||||
scope : me
|
||||
}));
|
||||
|
||||
|
||||
@ -69,6 +69,7 @@ define([], function () { 'use strict';
|
||||
'<% if (dataHintOffset) {%>',
|
||||
'data-hint-offset="<%= dataHintOffset %>" ',
|
||||
'<% } %>',
|
||||
'dir="auto"',
|
||||
'></textarea>',
|
||||
'</div>'
|
||||
].join('')),
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
</div>
|
||||
<div id="chat-options" class="layout-item">
|
||||
<div id="chat-options-ct">
|
||||
<textarea id="chat-msg-text" class="user-select textarea-control" maxlength="<%=maxMsgLength%>" data-hint="1" data-hint-direction="left-top" placeholder="<%=textEnterMessage%>" aria-label="<%=textEnterMessage%>"></textarea>
|
||||
<textarea id="chat-msg-text" class="user-select textarea-control" maxlength="<%=maxMsgLength%>" data-hint="1" data-hint-direction="left-top" placeholder="<%=textEnterMessage%>" aria-label="<%=textEnterMessage%>" dir="auto"></textarea>
|
||||
<button id="chat-msg-btn-add" class="btn normal dlg-btn primary" data-hint="1" data-hint-direction="bottom" data-hint-offset="big"><%=scope.textSend%></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<div class="user-quote"><%=scope.getFixedQuote(quote)%></div>
|
||||
<% } %>
|
||||
<% if (!editText || scope.viewmode) { %>
|
||||
<div oo_editor_input="true" tabindex="-1" class="user-message user-select"><%=scope.pickLink(comment)%></div>
|
||||
<div oo_editor_input="true" tabindex="-1" class="user-message user-select" dir="auto"><%=scope.pickLink(comment)%></div>
|
||||
<% } else { %>
|
||||
<div class="inner-edit-ct">
|
||||
<textarea class="msg-reply user-select textarea-control" maxlength="maxCommLength" aria-label="textComment"><%=comment%></textarea>
|
||||
@ -55,7 +55,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<% if (!item.get("editText")) { %>
|
||||
<div oo_editor_input="true" tabindex="-1" class="user-message user-select"><%=scope.pickLink(item.get("reply"))%></div>
|
||||
<div oo_editor_input="true" tabindex="-1" class="user-message user-select" dir="auto"><%=scope.pickLink(item.get("reply"))%></div>
|
||||
<% if (!scope.viewmode) { %>
|
||||
<div class="btns-reply-ct">
|
||||
<% if (item.get("editable")) { %>
|
||||
@ -68,7 +68,7 @@
|
||||
<%}%>
|
||||
<% } else { %>
|
||||
<div class="inner-edit-ct">
|
||||
<textarea class="msg-reply textarea-fix user-select textarea-control" maxlength="maxCommLength" aria-label="textReply"><%=item.get("reply")%></textarea>
|
||||
<textarea class="msg-reply textarea-fix user-select textarea-control" maxlength="maxCommLength" aria-label="textReply" dir="auto"><%=item.get("reply")%></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-inner-edit btn-fix" id="id-comments-change">textEdit</button>
|
||||
<button class="btn normal dlg-btn btn-inner-close">textClose</button>
|
||||
</div>
|
||||
@ -112,7 +112,7 @@
|
||||
|
||||
<% if (showReply) { %>
|
||||
<div class="reply-ct">
|
||||
<textarea class="msg-reply user-select textarea-control" placeholder="textAddReply" maxlength="maxCommLength" aria-label="textReply"></textarea>
|
||||
<textarea class="msg-reply user-select textarea-control" placeholder="textAddReply" maxlength="maxCommLength" aria-label="textReply" dir="auto"></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-reply" id="id-comments-change">textReply</button>
|
||||
<button class="btn normal dlg-btn btn-close">textClose</button>
|
||||
</div>
|
||||
|
||||
@ -17,10 +17,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<% if (!editTextInPopover || (hint && !fullInfoInHint) || scope.viewmode) { %>
|
||||
<div oo_editor_input="true" tabindex="-1" class="user-message user-select"><%=scope.pickLink(comment)%></div>
|
||||
<div oo_editor_input="true" tabindex="-1" class="user-message user-select" dir="auto"><%=scope.pickLink(comment)%></div>
|
||||
<% } else { %>
|
||||
<div class="inner-edit-ct">
|
||||
<textarea class="msg-reply user-select" maxlength="maxCommLength" spellcheck="false" <% if (!!dummy) { %> placeholder="textMentionComment"<% } %> aria-label="textComment"><%=comment%></textarea>
|
||||
<textarea class="msg-reply user-select" maxlength="maxCommLength" spellcheck="false" <% if (!!dummy) { %> placeholder="textMentionComment"<% } %> aria-label="textComment" dir="auto"><%=comment%></textarea>
|
||||
<% if (hideAddReply) { %>
|
||||
<button class="btn normal dlg-btn primary btn-inner-edit" id="id-comments-change-popover">textAdd</button>
|
||||
<% } else { %>
|
||||
@ -54,7 +54,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<% if (!item.get("editTextInPopover")) { %>
|
||||
<div oo_editor_input="true" tabindex="-1" class="user-message user-select"><%=scope.pickLink(item.get("reply"))%></div>
|
||||
<div oo_editor_input="true" tabindex="-1" class="user-message user-select" dir="auto"><%=scope.pickLink(item.get("reply"))%></div>
|
||||
<% if ((fullInfoInHint || !hint) && !scope.viewmode) { %>
|
||||
<div class="btns-reply-ct">
|
||||
<% if (item.get("editable")) { %>
|
||||
@ -67,7 +67,7 @@
|
||||
<%}%>
|
||||
<% } else { %>
|
||||
<div class="inner-edit-ct">
|
||||
<textarea class="msg-reply textarea-fix user-select" maxlength="maxCommLength" spellcheck="false" aria-label="textReply"><%=item.get("reply")%></textarea>
|
||||
<textarea class="msg-reply textarea-fix user-select" maxlength="maxCommLength" spellcheck="false" aria-label="textReply" dir="auto"><%=item.get("reply")%></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-inner-edit btn-fix" id="id-comments-change-popover">textEdit</button>
|
||||
<button class="btn normal dlg-btn btn-inner-close">textClose</button>
|
||||
</div>
|
||||
@ -111,7 +111,7 @@
|
||||
|
||||
<% if (showReplyInPopover) { %>
|
||||
<div class="reply-ct">
|
||||
<textarea class="msg-reply user-select" placeholder="textMentionReply" maxlength="maxCommLength" spellcheck="false" aria-label="textReply"></textarea>
|
||||
<textarea class="msg-reply user-select" placeholder="textMentionReply" maxlength="maxCommLength" spellcheck="false" aria-label="textReply" dir="auto"></textarea>
|
||||
<button class="btn normal dlg-btn primary btn-reply" id="id-comments-change-popover">textReply</button>
|
||||
<button class="btn normal dlg-btn btn-close">textClose</button>
|
||||
</div>
|
||||
|
||||
@ -139,7 +139,8 @@ define([
|
||||
allowBlank : true,
|
||||
validateOnChange : true,
|
||||
maxLength : 31,
|
||||
validation : function () { return true; }
|
||||
validation : function () { return true; },
|
||||
dir: 'auto'
|
||||
}).on ('changing', function (input, value) {
|
||||
var _selectedItem;
|
||||
if (value.length) {
|
||||
@ -180,7 +181,8 @@ define([
|
||||
allowBlank : true,
|
||||
validateOnChange : true,
|
||||
maxLength : 255,
|
||||
validation : function () { return true; }
|
||||
validation : function () { return true; },
|
||||
dir: 'auto'
|
||||
}).on ('changing', function (input, value) {
|
||||
me.updateControls();
|
||||
});
|
||||
@ -222,7 +224,8 @@ define([
|
||||
allowBlank : true,
|
||||
validateOnChange : true,
|
||||
maxLength : 255,
|
||||
validation : function () { return true; }
|
||||
validation : function () { return true; },
|
||||
dir: 'auto'
|
||||
}).on ('changing', function (input, value) {
|
||||
var _selectedItem;
|
||||
if (value.length) {
|
||||
@ -398,7 +401,8 @@ define([
|
||||
allowBlank : true,
|
||||
validateOnChange : true,
|
||||
maxLength : 255,
|
||||
validation : function () { return true; }
|
||||
validation : function () { return true; },
|
||||
dir: 'auto'
|
||||
}).on ('changing', _.bind(this.onChangeInputException, this));
|
||||
|
||||
this.exceptionsFindInput.cmpEl.find('input').on('keydown', function(event){
|
||||
|
||||
@ -78,7 +78,13 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
input {
|
||||
input:not([dir=auto]) {
|
||||
.rtl & {
|
||||
direction: rtl;
|
||||
}
|
||||
}
|
||||
|
||||
input:placeholder-shown {
|
||||
.rtl & {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
@ -178,7 +178,7 @@
|
||||
<tr>
|
||||
<td class="padding-large">
|
||||
<label class="input-label"><%= scope.textHelp %></label>
|
||||
<textarea id="control-settings-txt-help" class="form-control" style="width: 100%; height: 90px;"></textarea>
|
||||
<textarea id="control-settings-txt-help" class="form-control" style="width: 100%; height: 90px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -431,7 +431,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="image-advanced-alt-description" class="form-control" style="width: 100%; height: 120px;"></textarea>
|
||||
<textarea id="image-advanced-alt-description" class="form-control" style="width: 100%; height: 120px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<tr>
|
||||
<td colspan="2" class="padding-small">
|
||||
<label id="merge-email-dlg-lbl-message" class="input-label disabled header"><%= scope.textMessage %></label>
|
||||
<textarea id="merge-email-dlg-message" class="disabled form-control" disabled="disabled" style="width: 100%;height: 70px;margin-bottom: 0;"></textarea>
|
||||
<textarea id="merge-email-dlg-message" class="disabled form-control" disabled="disabled" style="width: 100%;height: 70px;margin-bottom: 0;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -340,7 +340,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="table-advanced-alt-description" class="form-control" style="width: 100%; height: 120px;"></textarea>
|
||||
<textarea id="table-advanced-alt-description" class="form-control" style="width: 100%; height: 120px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -138,6 +138,7 @@ define([
|
||||
validateOnBlur: true,
|
||||
value : '',
|
||||
maxLength: 40,
|
||||
dir: 'auto',
|
||||
validation : function(value) {
|
||||
var check = me.props.asc_CheckNewBookmarkName(value),
|
||||
exist = me.props.asc_HaveBookmark(value);
|
||||
|
||||
@ -1477,7 +1477,7 @@ define([], function () {
|
||||
'<td class="right"><div id="id-info-author">',
|
||||
'<table>',
|
||||
'<tr>',
|
||||
'<td><div id="id-info-add-author"><input type="text" spellcheck="false" class="form-control" placeholder="' + this.txtAddAuthor +'"></div></td>',
|
||||
'<td><div id="id-info-add-author"><input type="text" spellcheck="false" class="form-control" placeholder="' + this.txtAddAuthor +'" dir="auto"></div></td>',
|
||||
'</tr>',
|
||||
'</table>',
|
||||
'</div></td>',
|
||||
@ -1566,7 +1566,8 @@ define([], function () {
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small',
|
||||
ariaLabel: this.txtTitle
|
||||
ariaLabel: this.txtTitle,
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putTitle(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1580,7 +1581,8 @@ define([], function () {
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small',
|
||||
ariaLabel: this.txtTags
|
||||
ariaLabel: this.txtTags,
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putKeywords(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1594,7 +1596,8 @@ define([], function () {
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small',
|
||||
ariaLabel: this.txtSubject
|
||||
ariaLabel: this.txtSubject,
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putSubject(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1608,7 +1611,8 @@ define([], function () {
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small',
|
||||
ariaLabel: this.txtComment
|
||||
ariaLabel: this.txtComment,
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putDescription(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1623,7 +1627,7 @@ define([], function () {
|
||||
this.lblApplication = $markup.findById('#id-info-appname');
|
||||
this.tblAuthor = $markup.findById('#id-info-author table');
|
||||
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}"></div><div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" dir="auto"></div><div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
|
||||
this.tblAuthor.on('click', function(e) {
|
||||
var btn = $markup.find(e.target);
|
||||
@ -1646,7 +1650,8 @@ define([], function () {
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small',
|
||||
ariaLabel: this.txtAuthor
|
||||
ariaLabel: this.txtAuthor,
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function(input, newValue, oldValue, e) {
|
||||
if (newValue == oldValue) return;
|
||||
|
||||
@ -2006,7 +2011,7 @@ define([], function () {
|
||||
return '<tr data-custom-property>' +
|
||||
'<td class="left"><label>' + Common.Utils.String.htmlEncode(name) + '</label></td>' +
|
||||
'<td class="right"><div class="custom-property-wrapper">' +
|
||||
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'">' +
|
||||
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'" dir="auto">' +
|
||||
'<div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div>' +
|
||||
'</div></td></tr>';
|
||||
},
|
||||
|
||||
@ -1121,7 +1121,8 @@ define([
|
||||
el : $('#image-advanced-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -979,7 +979,8 @@ define([
|
||||
el : $('#table-advanced-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="image-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="image-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -225,7 +225,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="shape-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="shape-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -137,7 +137,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="tableadv-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="tableadv-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -1272,7 +1272,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputTags = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-tags'),
|
||||
@ -1281,7 +1282,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputSubject = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-subject'),
|
||||
@ -1290,7 +1292,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
this.inputComment = new Common.UI.InputField({
|
||||
el : $markup.findById('#id-info-comment'),
|
||||
@ -1299,7 +1302,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore);
|
||||
|
||||
// modify info
|
||||
@ -1311,7 +1315,7 @@ define([], function () {
|
||||
this.lblApplication = $markup.findById('#id-info-appname');
|
||||
this.tblAuthor = $markup.findById('#id-info-author table');
|
||||
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}"></div><div class="tool close img-commonctrl img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" dir="auto"></div><div class="tool close img-commonctrl img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
|
||||
this.tblAuthor.on('click', function(e) {
|
||||
var btn = $markup.find(e.target);
|
||||
@ -1331,7 +1335,8 @@ define([], function () {
|
||||
placeHolder: this.txtAddAuthor,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function(input, newValue, oldValue, e) {
|
||||
if (newValue == oldValue) return;
|
||||
|
||||
|
||||
@ -125,7 +125,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="chart-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="chart-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="image-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="image-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -225,7 +225,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="shape-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="shape-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -137,7 +137,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="tableadv-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="tableadv-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -101,7 +101,8 @@ define([
|
||||
el : $('#chart-advanced-name'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isChartNameChanged = true;
|
||||
});
|
||||
@ -235,7 +236,8 @@ define([
|
||||
el : $('#chart-advanced-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -1183,7 +1183,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putTitle(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1196,7 +1197,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putKeywords(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1209,7 +1211,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putSubject(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1222,7 +1225,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putDescription(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1237,7 +1241,7 @@ define([], function () {
|
||||
this.lblApplication = $markup.findById('#id-info-appname');
|
||||
this.tblAuthor = $markup.findById('#id-info-author table');
|
||||
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" ></div><div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" dir="auto"></div><div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
|
||||
this.tblAuthor.on('click', function(e) {
|
||||
var btn = $markup.find(e.target);
|
||||
@ -1259,7 +1263,8 @@ define([], function () {
|
||||
placeHolder: this.txtAddAuthor,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function(input, newValue, oldValue, e) {
|
||||
if (newValue == oldValue) return;
|
||||
|
||||
@ -1433,7 +1438,7 @@ define([], function () {
|
||||
return '<tr data-custom-property>' +
|
||||
'<td class="left"><label>' + Common.Utils.String.htmlEncode(name) + '</label></td>' +
|
||||
'<td class="right"><div class="custom-property-wrapper">' +
|
||||
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'">' +
|
||||
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'" dir="auto">' +
|
||||
'<div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div>' +
|
||||
'</div></td></tr>';
|
||||
},
|
||||
|
||||
@ -181,7 +181,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="chart-advanced-alt-description" class="form-control" style="width: 100%; height: 120px;"></textarea>
|
||||
<textarea id="chart-advanced-alt-description" class="form-control" style="width: 100%; height: 120px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -57,7 +57,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="image-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="image-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -86,7 +86,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="pivot-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="pivot-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -194,7 +194,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="shape-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="shape-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -106,7 +106,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="sliceradv-alt-description" class="form-control" style="width: 100%; height: 120px;"></textarea>
|
||||
<textarea id="sliceradv-alt-description" class="form-control" style="width: 100%; height: 120px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<label class="header"><%= scope.textAltDescription %></label>
|
||||
<textarea id="table-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;"></textarea>
|
||||
<textarea id="table-advanced-alt-description" class="form-control" style="width: 100%; height: 70px;" dir="auto"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@ -522,7 +522,8 @@ define([
|
||||
el : $('#chart-advanced-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -182,7 +182,8 @@ define([
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
maxLength: 32,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isInputTitleChanged = true;
|
||||
});
|
||||
@ -226,7 +227,8 @@ define([
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
maxLength: 32,
|
||||
style : 'width: 140px;'
|
||||
style : 'width: 140px;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isErrorTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -81,7 +81,8 @@ define([
|
||||
el : $('#field-settings-custom'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
});
|
||||
|
||||
this.lblSourceName = this.$window.find('#field-settings-source');
|
||||
|
||||
@ -1761,7 +1761,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putTitle(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1774,7 +1775,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putKeywords(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1787,7 +1789,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putSubject(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1800,7 +1803,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putDescription(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -1815,7 +1819,7 @@ define([], function () {
|
||||
this.lblApplication = $markup.findById('#id-info-appname');
|
||||
this.tblAuthor = $markup.findById('#id-info-author table');
|
||||
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" ></div><div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" dir="auto"></div><div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
|
||||
this.tblAuthor.on('click', function(e) {
|
||||
var btn = $markup.find(e.target);
|
||||
@ -1837,7 +1841,8 @@ define([], function () {
|
||||
placeHolder: this.txtAddAuthor,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function(input, newValue, oldValue, e) {
|
||||
if (newValue == oldValue) return;
|
||||
|
||||
@ -2050,7 +2055,7 @@ define([], function () {
|
||||
return '<tr data-custom-property>' +
|
||||
'<td class="left"><label>' + Common.Utils.String.htmlEncode(name) + '</label></td>' +
|
||||
'<td class="right"><div class="custom-property-wrapper">' +
|
||||
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'">' +
|
||||
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'" dir="auto">' +
|
||||
'<div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div>' +
|
||||
'</div></td></tr>';
|
||||
},
|
||||
|
||||
@ -126,7 +126,8 @@ define([
|
||||
el : $('#image-advanced-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -117,6 +117,7 @@ define([
|
||||
validateOnChange: false,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto',
|
||||
validation : function(value) {
|
||||
var isvalid = me.api.asc_checkDefinedName(value, (me.cmbScope.getValue()==-255) ? null : me.cmbScope.getValue());
|
||||
if (isvalid.asc_getStatus() === true) return true;
|
||||
|
||||
@ -88,7 +88,8 @@ define([
|
||||
el : $('#pivot-adv-name'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
});
|
||||
|
||||
this.radioDown = new Common.UI.RadioBox({
|
||||
@ -164,7 +165,8 @@ define([
|
||||
el : $('#pivot-advanced-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -529,7 +529,8 @@ define([
|
||||
el : $('#shape-advanced-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -94,7 +94,8 @@ define([
|
||||
this.inputHeader = new Common.UI.InputField({
|
||||
el : $('#sliceradv-text-header'),
|
||||
allowBlank : true,
|
||||
style : 'width: 178px;'
|
||||
style : 'width: 178px;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isCaptionChanged = true;
|
||||
});
|
||||
@ -326,7 +327,8 @@ define([
|
||||
el : $('#sliceradv-text-name'),
|
||||
allowBlank : false,
|
||||
blankError : me.txtEmpty,
|
||||
style : 'width: 178px;'
|
||||
style : 'width: 178px;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isNameChanged = true;
|
||||
});
|
||||
@ -365,7 +367,8 @@ define([
|
||||
el : $('#sliceradv-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -78,7 +78,8 @@ define([
|
||||
el : $('#table-advanced-alt-title'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function() {
|
||||
me.isAltTitleChanged = true;
|
||||
});
|
||||
|
||||
@ -114,7 +114,8 @@ define([
|
||||
el : $('#value-field-settings-custom'),
|
||||
allowBlank : true,
|
||||
validateOnBlur: false,
|
||||
style : 'width: 100%;'
|
||||
style : 'width: 100%;',
|
||||
dir: 'auto'
|
||||
});
|
||||
|
||||
this.cmbSummarize = new Common.UI.ComboBox({
|
||||
|
||||
@ -861,7 +861,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putTitle(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -874,7 +875,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putKeywords(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -887,7 +889,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putSubject(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -900,7 +903,8 @@ define([], function () {
|
||||
validateOnBlur: false,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('keydown:before', keyDownBefore).on('changed:after', function(_, newValue) {
|
||||
me.coreProps.asc_putDescription(newValue);
|
||||
me.api.asc_setCoreProps(me.coreProps);
|
||||
@ -915,7 +919,7 @@ define([], function () {
|
||||
this.lblApplication = $markup.findById('#id-info-appname');
|
||||
this.tblAuthor = $markup.findById('#id-info-author table');
|
||||
this.trAuthor = $markup.findById('#id-info-add-author').closest('tr');
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" ></div><div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
this.authorTpl = '<tr><td><div style="display: inline-block;width: 200px;"><input type="text" spellcheck="false" class="form-control" readonly="true" value="{0}" dir="auto"></div><div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div></td></tr>';
|
||||
|
||||
this.tblAuthor.on('click', function(e) {
|
||||
var btn = $markup.find(e.target);
|
||||
@ -937,7 +941,8 @@ define([], function () {
|
||||
placeHolder: this.txtAddAuthor,
|
||||
dataHint: '2',
|
||||
dataHintDirection: 'left',
|
||||
dataHintOffset: 'small'
|
||||
dataHintOffset: 'small',
|
||||
dir: 'auto'
|
||||
}).on('changed:after', function(input, newValue, oldValue, e) {
|
||||
if (newValue == oldValue) return;
|
||||
|
||||
@ -1094,7 +1099,7 @@ define([], function () {
|
||||
return '<tr data-custom-property>' +
|
||||
'<td class="left"><label>' + Common.Utils.String.htmlEncode(name) + '</label></td>' +
|
||||
'<td class="right"><div class="custom-property-wrapper">' +
|
||||
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'">' +
|
||||
'<input type="text" spellcheck="false" class="form-control" readonly style="width: 200px;" value="' + value +'" dir="auto">' +
|
||||
'<div class="tool close img-colored" data-hint="2" data-hint-direction="right" data-hint-offset="small"></div>' +
|
||||
'</div></td></tr>';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user