[SSE] Hide case sensitive option for sorting
This commit is contained in:
parent
48fe19c588
commit
f675f45484
|
@ -48,7 +48,7 @@ define([
|
||||||
SSE.Views.SortOptionsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({
|
SSE.Views.SortOptionsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({
|
||||||
options: {
|
options: {
|
||||||
contentWidth: 230,
|
contentWidth: 230,
|
||||||
height: 225
|
height: 200
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize : function(options) {
|
initialize : function(options) {
|
||||||
|
@ -62,15 +62,15 @@ define([
|
||||||
'<div class="settings-panel active">',
|
'<div class="settings-panel active">',
|
||||||
'<table cols="1" style="width: 100%;">',
|
'<table cols="1" style="width: 100%;">',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td class="padding-small">',
|
'<td class="padding-large">',
|
||||||
'<div id="sort-options-chk-headers"></div>',
|
'<div id="sort-options-chk-headers"></div>',
|
||||||
'</td>',
|
'</td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr>',
|
// '<tr>',
|
||||||
'<td class="padding-large">',
|
// '<td class="padding-large">',
|
||||||
'<div id="sort-options-chk-case"></div>',
|
// '<div id="sort-options-chk-case"></div>',
|
||||||
'</td>',
|
// '</td>',
|
||||||
'</tr>',
|
// '</tr>',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td class="padding-small">',
|
'<td class="padding-small">',
|
||||||
'<label class="input-label">' + me.textOrientation + '</label>',
|
'<label class="input-label">' + me.textOrientation + '</label>',
|
||||||
|
@ -100,17 +100,16 @@ define([
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
Common.Views.AdvancedSettingsWindow.prototype.render.call(this);
|
Common.Views.AdvancedSettingsWindow.prototype.render.call(this);
|
||||||
var me = this;
|
|
||||||
|
|
||||||
this.chHeaders = new Common.UI.CheckBox({
|
this.chHeaders = new Common.UI.CheckBox({
|
||||||
el: $('#sort-options-chk-headers'),
|
el: $('#sort-options-chk-headers'),
|
||||||
labelText: this.textHeaders
|
labelText: this.textHeaders
|
||||||
});
|
});
|
||||||
|
|
||||||
this.chCase = new Common.UI.CheckBox({
|
// this.chCase = new Common.UI.CheckBox({
|
||||||
el: $('#sort-options-chk-case'),
|
// el: $('#sort-options-chk-case'),
|
||||||
labelText: this.textCase
|
// labelText: this.textCase
|
||||||
});
|
// });
|
||||||
|
|
||||||
this.radioTop = new Common.UI.RadioBox({
|
this.radioTop = new Common.UI.RadioBox({
|
||||||
el: $('#sort-options-radio-row'),
|
el: $('#sort-options-radio-row'),
|
||||||
|
@ -138,14 +137,14 @@ define([
|
||||||
_setDefaults: function (props) {
|
_setDefaults: function (props) {
|
||||||
if (props) {
|
if (props) {
|
||||||
this.chHeaders.setValue(props.headers);
|
this.chHeaders.setValue(props.headers);
|
||||||
this.chCase.setValue(props.sensitive);
|
// this.chCase.setValue(props.sensitive);
|
||||||
(props.sortcol || props.lockOrientation) ? this.radioTop.setValue(true) : this.radioLeft.setValue(true);
|
(props.sortcol || props.lockOrientation) ? this.radioTop.setValue(true) : this.radioLeft.setValue(true);
|
||||||
this.radioLeft.setDisabled(props.lockOrientation);
|
this.radioLeft.setDisabled(props.lockOrientation);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getSettings: function () {
|
getSettings: function () {
|
||||||
return {headers: this.radioTop.getValue() && (this.chHeaders.getValue()=='checked'), sensitive: this.chCase.getValue()=='checked', sortcol: this.radioTop.getValue(), lockHeaders: this.props.lockHeaders, lockOrientation: this.props.lockOrientation};
|
return {headers: this.radioTop.getValue() && (this.chHeaders.getValue()=='checked'), /*sensitive: this.chCase.getValue()=='checked',*/ sortcol: this.radioTop.getValue(), lockHeaders: this.props.lockHeaders, lockOrientation: this.props.lockOrientation};
|
||||||
},
|
},
|
||||||
|
|
||||||
textTitle: 'Sort Options',
|
textTitle: 'Sort Options',
|
||||||
|
|
Loading…
Reference in a new issue