Renamed Decoder tab to HackVertor and disabled it for the upcomming
release
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
<%= script_tag 'ui/panel/Logout.js' %>
|
||||
<%= script_tag 'ui/panel/WelcomeTab.js' %>
|
||||
<%= script_tag 'ui/panel/DecoderTab.js' %>
|
||||
<!-- <%= script_tag 'ui/panel/HackVertorTab.js' %> -->
|
||||
|
||||
<%= stylesheet_tag 'ext-all.css' %>
|
||||
<%= stylesheet_tag 'base.css' %>
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
DecoderTab = function() {
|
||||
HackVertorTab = function() {
|
||||
|
||||
/*
|
||||
* The panel used to encode/decode text.
|
||||
********************************************/
|
||||
var decoder_panel = new Ext.FormPanel({
|
||||
title: 'Decoder',
|
||||
id: 'decoder-panel',
|
||||
var hackvertor_panel = new Ext.FormPanel({
|
||||
title: 'HackVertor',
|
||||
id: 'hackvertor-panel',
|
||||
hideLabels : false,
|
||||
border: false,
|
||||
padding: '3px 5px 0 5px',
|
||||
@@ -46,7 +46,7 @@ DecoderTab = function() {
|
||||
buttons: [{
|
||||
text: 'Encode',
|
||||
handler: function() {
|
||||
var form = Ext.getCmp('decoder-panel').getForm();
|
||||
var form = Ext.getCmp('hackvertor-panel').getForm();
|
||||
var form_values = form.getValues();
|
||||
var input_text = form_values['inputText'];
|
||||
var result="";
|
||||
@@ -83,7 +83,7 @@ DecoderTab = function() {
|
||||
},{
|
||||
text: 'Decode',
|
||||
handler: function() {
|
||||
var form = Ext.getCmp('decoder-panel').getForm();
|
||||
var form = Ext.getCmp('hackvertor-panel').getForm();
|
||||
var form_values = form.getValues();
|
||||
var input_text = form_values['inputText'];
|
||||
var result="";
|
||||
@@ -150,15 +150,15 @@ DecoderTab = function() {
|
||||
hiddenName: 'decodeType'
|
||||
});
|
||||
|
||||
decoder_panel.add(decode_combo);
|
||||
hackvertor_panel.add(decode_combo);
|
||||
|
||||
DecoderTab.superclass.constructor.call(this, {
|
||||
HackVertorTab.superclass.constructor.call(this, {
|
||||
region: 'center',
|
||||
items: [decoder_panel],
|
||||
items: [hackvertor_panel],
|
||||
autoScroll: true,
|
||||
border: false
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
Ext.extend(DecoderTab,Ext.Panel, {});
|
||||
Ext.extend(HackVertorTab,Ext.Panel, {});
|
||||
@@ -41,7 +41,7 @@ MainPanel = function(){
|
||||
this.grid = new DataGrid('/ui/logs/all.json',30);
|
||||
this.grid.border = false;
|
||||
this.welcome_tab = new WelcomeTab;
|
||||
this.decoder_tab = new DecoderTab;
|
||||
this.hackvertor_tab = new HackVertorTab;
|
||||
|
||||
MainPanel.superclass.constructor.call(this, {
|
||||
id:'main-tabs',
|
||||
@@ -71,12 +71,12 @@ MainPanel = function(){
|
||||
items:[
|
||||
this.grid
|
||||
]},{
|
||||
id:'decoder-view',
|
||||
id:'hackvertor-view',
|
||||
layout:'border',
|
||||
title:'Decoder',
|
||||
title:'HackVertor',
|
||||
hideMode:'offsets',
|
||||
items:[
|
||||
this.decoder_tab
|
||||
this.hackvertor_tab
|
||||
]
|
||||
}]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user