mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 10:05:27 +08:00
Fix primary buttons in alert (must be only one primary)
This commit is contained in:
@ -362,7 +362,7 @@ define([
|
||||
title: this.toolbar.txtSorting,
|
||||
msg: this.toolbar.txtExpandSort,
|
||||
buttons: [ {caption: this.toolbar.txtExpand, primary: true, value: 'expand'},
|
||||
{caption: this.toolbar.txtSortSelected, primary: true, value: 'sort'},
|
||||
{caption: this.toolbar.txtSortSelected, value: 'sort'},
|
||||
'cancel'],
|
||||
callback: function(btn){
|
||||
if (btn == 'expand' || btn == 'sort') {
|
||||
@ -437,7 +437,7 @@ define([
|
||||
title: this.txtRemDuplicates,
|
||||
msg: this.txtExpandRemDuplicates,
|
||||
buttons: [ {caption: this.txtExpand, primary: true, value: 'expand'},
|
||||
{caption: this.txtRemSelected, primary: true, value: 'remove'},
|
||||
{caption: this.txtRemSelected, value: 'remove'},
|
||||
'cancel'],
|
||||
callback: function(btn){
|
||||
if (btn == 'expand' || btn == 'remove') {
|
||||
|
||||
@ -516,7 +516,7 @@ define([
|
||||
title: this.txtSorting,
|
||||
msg: this.txtExpandSort,
|
||||
buttons: [ {caption: this.txtExpand, primary: true, value: 'expand'},
|
||||
{caption: this.txtSortSelected, primary: true, value: 'sort'},
|
||||
{caption: this.txtSortSelected, value: 'sort'},
|
||||
'cancel'],
|
||||
callback: _.bind(function(btn){
|
||||
if (btn == 'expand' || btn == 'sort') {
|
||||
|
||||
@ -1382,7 +1382,7 @@ define([
|
||||
title: this.txtSorting,
|
||||
msg: this.txtExpandSort,
|
||||
buttons: [ {caption: this.txtExpand, primary: true, value: 'expand'},
|
||||
{caption: this.txtSortSelected, primary: true, value: 'sort'},
|
||||
{caption: this.txtSortSelected, value: 'sort'},
|
||||
'cancel'],
|
||||
callback: function(btn){
|
||||
if (btn == 'expand' || btn == 'sort') {
|
||||
|
||||
Reference in New Issue
Block a user