[DE mobile] Fixed input:checkbox handlers.
This commit is contained in:
parent
7629b9c734
commit
a9c9c29628
|
@ -150,8 +150,8 @@ define([
|
|||
$('.chart-replace li').single('click', _.buffered(me.onReplace, 100, me));
|
||||
$('.chart-wrap .chart-wrap-types li').single('click', _.buffered(me.onWrapType, 100, me));
|
||||
$('.chart-wrap .align a').single('click', _.bind(me.onAlign, me));
|
||||
$('#edit-chart-movetext input').single('click', _.bind(me.onMoveText, me));
|
||||
$('#edit-chart-overlap input').single('click', _.bind(me.onOverlap, me));
|
||||
$('#edit-chart-movetext input').single('change', _.bind(me.onMoveText, me));
|
||||
$('#edit-chart-overlap input').single('change', _.bind(me.onOverlap, me));
|
||||
$('.chart-wrap .distance input').single('change touchend', _.buffered(me.onWrapDistance, 100, me));
|
||||
$('.chart-wrap .distance input').single('input', _.bind(me.onWrapDistanceChanging, me));
|
||||
|
||||
|
|
|
@ -42,8 +42,11 @@
|
|||
|
||||
define([
|
||||
'core',
|
||||
'documenteditor/mobile/app/view/edit/EditImage'
|
||||
], function (core) {
|
||||
'documenteditor/mobile/app/view/edit/EditImage',
|
||||
'jquery',
|
||||
'underscore',
|
||||
'backbone'
|
||||
], function (core, view, $, _, Backbone) {
|
||||
'use strict';
|
||||
|
||||
DE.Controllers.EditImage = Backbone.Controller.extend(_.extend((function() {
|
||||
|
@ -123,8 +126,8 @@ define([
|
|||
|
||||
$('.image-wrap .image-wrap-types li').single('click', _.buffered(me.onWrapType, 100, me));
|
||||
$('.image-wrap .align a').single('click', _.bind(me.onAlign, me));
|
||||
$('#edit-image-movetext input').single('click', _.bind(me.onMoveText, me));
|
||||
$('#edit-image-overlap input').single('click', _.bind(me.onOverlap, me));
|
||||
$('#edit-image-movetext input').single('change', _.bind(me.onMoveText, me));
|
||||
$('#edit-image-overlap input').single('change', _.bind(me.onOverlap, me));
|
||||
$('.image-wrap .distance input').single('change touchend', _.buffered(me.onWrapDistance, 100, me));
|
||||
$('.image-wrap .distance input').single('input', _.bind(me.onWrapDistanceChanging, me));
|
||||
|
||||
|
|
|
@ -42,8 +42,11 @@
|
|||
|
||||
define([
|
||||
'core',
|
||||
'documenteditor/mobile/app/view/edit/EditParagraph'
|
||||
], function (core) {
|
||||
'documenteditor/mobile/app/view/edit/EditParagraph',
|
||||
'jquery',
|
||||
'underscore',
|
||||
'backbone'
|
||||
], function (core, view, $, _, Backbone) {
|
||||
'use strict';
|
||||
|
||||
DE.Controllers.EditParagraph = Backbone.Controller.extend(_.extend((function() {
|
||||
|
@ -109,11 +112,11 @@ define([
|
|||
|
||||
$('#paragraph-distance-before .button').single('click', _.bind(me.onDistanceBefore, me));
|
||||
$('#paragraph-distance-after .button').single('click', _.bind(me.onDistanceAfter, me));
|
||||
$('#paragraph-space input:checkbox').single('click', _.bind(me.onSpaceBetween, me));
|
||||
$('#paragraph-page-break input:checkbox').single('click', _.bind(me.onBreakBefore, me));
|
||||
$('#paragraph-page-orphan input:checkbox').single('click', _.bind(me.onOrphan, me));
|
||||
$('#paragraph-page-keeptogether input:checkbox').single('click',_.bind(me.onKeepTogether, me));
|
||||
$('#paragraph-page-keepnext input:checkbox').single('click', _.bind(me.onKeepNext, me));
|
||||
$('#paragraph-space input:checkbox').single('change', _.bind(me.onSpaceBetween, me));
|
||||
$('#paragraph-page-break input:checkbox').single('change', _.bind(me.onBreakBefore, me));
|
||||
$('#paragraph-page-orphan input:checkbox').single('change', _.bind(me.onOrphan, me));
|
||||
$('#paragraph-page-keeptogether input:checkbox').single('change',_.bind(me.onKeepTogether, me));
|
||||
$('#paragraph-page-keepnext input:checkbox').single('change', _.bind(me.onKeepNext, me));
|
||||
|
||||
paletteBackgroundColor && paletteBackgroundColor.on('select', _.bind(me.onBackgroundColor, me));
|
||||
|
||||
|
|
|
@ -42,8 +42,11 @@
|
|||
|
||||
define([
|
||||
'core',
|
||||
'documenteditor/mobile/app/view/edit/EditShape'
|
||||
], function (core) {
|
||||
'documenteditor/mobile/app/view/edit/EditShape',
|
||||
'jquery',
|
||||
'underscore',
|
||||
'backbone'
|
||||
], function (core, view, $, _, Backbone) {
|
||||
'use strict';
|
||||
|
||||
DE.Controllers.EditShape = Backbone.Controller.extend(_.extend((function() {
|
||||
|
@ -145,8 +148,8 @@ define([
|
|||
$('.shape-replace li').single('click', _.buffered(me.onReplace, 100, me));
|
||||
$('.shape-wrap .shape-wrap-types li').single('click', _.buffered(me.onWrapType, 100, me));
|
||||
$('.shape-wrap .align a').single('click', _.bind(me.onAlign, me));
|
||||
$('#edit-shape-movetext input').single('click', _.bind(me.onMoveText, me));
|
||||
$('#edit-shape-overlap input').single('click', _.bind(me.onOverlap, me));
|
||||
$('#edit-shape-movetext input').single('change', _.bind(me.onMoveText, me));
|
||||
$('#edit-shape-overlap input').single('change', _.bind(me.onOverlap, me));
|
||||
$('.shape-wrap .distance input').single('change touchend', _.buffered(me.onWrapDistance, 100, me));
|
||||
$('.shape-wrap .distance input').single('input', _.bind(me.onWrapDistanceChanging, me));
|
||||
|
||||
|
|
|
@ -42,8 +42,11 @@
|
|||
|
||||
define([
|
||||
'core',
|
||||
'documenteditor/mobile/app/view/edit/EditTable'
|
||||
], function (core) {
|
||||
'documenteditor/mobile/app/view/edit/EditTable',
|
||||
'jquery',
|
||||
'underscore',
|
||||
'backbone'
|
||||
], function (core, view, $, _, Backbone) {
|
||||
'use strict';
|
||||
|
||||
DE.Controllers.EditTable = Backbone.Controller.extend(_.extend((function() {
|
||||
|
@ -144,24 +147,24 @@ define([
|
|||
paletteBorderColor = me.getView('EditTable').paletteBorderColor;
|
||||
|
||||
$('#table-wrap-type li').single('click', _.buffered(me.onWrapType, 100, me));
|
||||
$('#table-move-text input').single('click', _.bind(me.onWrapMoveText, me));
|
||||
$('#table-move-text input:checkbox').single('change', _.bind(me.onWrapMoveText, me));
|
||||
$('#table-distance input').single('change touchend', _.buffered(me.onWrapDistance, 100, me));
|
||||
$('#table-distance input').single('input', _.bind(me.onWrapDistanceChanging, me));
|
||||
$('#table-align-left').single('click', _.bind(me.onWrapAlign, me, c_tableAlign.TABLE_ALIGN_LEFT));
|
||||
$('#table-align-center').single('click', _.bind(me.onWrapAlign, me, c_tableAlign.TABLE_ALIGN_CENTER));
|
||||
$('#table-align-right').single('click', _.bind(me.onWrapAlign, me, c_tableAlign.TABLE_ALIGN_RIGHT));
|
||||
|
||||
$('#table-option-repeatasheader input').single('click', _.bind(me.onOptionRepeat, me));
|
||||
$('#table-option-resizetofit input').single('click', _.bind(me.onOptionResize, me));
|
||||
$('#table-option-repeatasheader input:checkbox').single('change', _.bind(me.onOptionRepeat, me));
|
||||
$('#table-option-resizetofit input:checkbox').single('change', _.bind(me.onOptionResize, me));
|
||||
$('#table-options-margins input').single('change touchend', _.buffered(me.onOptionMargin, 100, me));
|
||||
$('#table-options-margins input').single('input', _.bind(me.onOptionMarginChanging, me));
|
||||
|
||||
$('#table-options-header-row input').single('click', _.bind(me.onCheckTemplateChange, me, 0));
|
||||
$('#table-options-total-row input').single('click', _.bind(me.onCheckTemplateChange, me, 1));
|
||||
$('#table-options-banded-row input').single('click', _.bind(me.onCheckTemplateChange, me, 2));
|
||||
$('#table-options-first-column input').single('click', _.bind(me.onCheckTemplateChange, me, 3));
|
||||
$('#table-options-last-column input').single('click', _.bind(me.onCheckTemplateChange, me, 4));
|
||||
$('#table-options-banded-column input').single('click', _.bind(me.onCheckTemplateChange, me, 5));
|
||||
$('#table-options-header-row input:checkbox').single('change', _.bind(me.onCheckTemplateChange, me, 0));
|
||||
$('#table-options-total-row input:checkbox').single('change', _.bind(me.onCheckTemplateChange, me, 1));
|
||||
$('#table-options-banded-row input:checkbox').single('change', _.bind(me.onCheckTemplateChange, me, 2));
|
||||
$('#table-options-first-column input:checkbox').single('change', _.bind(me.onCheckTemplateChange, me, 3));
|
||||
$('#table-options-last-column input:checkbox').single('change', _.bind(me.onCheckTemplateChange, me, 4));
|
||||
$('#table-options-banded-column input:checkbox').single('change', _.bind(me.onCheckTemplateChange, me, 5));
|
||||
|
||||
$('#edit-table-bordertypes a').single('click', _.bind(me.onBorderTypeClick, me));
|
||||
|
||||
|
|
|
@ -105,7 +105,6 @@ define([
|
|||
$layour.find('#settings-search .item-title').text(this.textFindAndReplace)
|
||||
} else {
|
||||
$layour.find('#settings-readermode input:checkbox')
|
||||
.attr('checked', Common.SharedSettings.get('readerMode'))
|
||||
.prop('checked', Common.SharedSettings.get('readerMode'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue