From f73ed0a3f8f6f3f11c89b3ae1925fc36d8a0bca3 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Sun, 27 Feb 2011 12:34:10 +0000 Subject: [PATCH] issue 213: added anchor of 70% for all the generated form input fields to follow resizes git-svn-id: https://beef.googlecode.com/svn/trunk@774 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- public/javascript/ui/panel/common.js | 3 ++- public/javascript/ui/panel/tabs/ZombieTabCommands.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/javascript/ui/panel/common.js b/public/javascript/ui/panel/common.js index fc78759ab..907d1f084 100644 --- a/public/javascript/ui/panel/common.js +++ b/public/javascript/ui/panel/common.js @@ -22,7 +22,8 @@ function generate_form_input_field(form, input, value, disabled, zombie) { input_def = { id: 'form-zombie-'+zombie.session+'-field-'+input['name'], name: 'txt_'+input['name'], - fieldLabel: input['ui_label'], + fieldLabel: input['ui_label'], + anchor:'70%', allowBlank: false, value: input['value'] }; diff --git a/public/javascript/ui/panel/tabs/ZombieTabCommands.js b/public/javascript/ui/panel/tabs/ZombieTabCommands.js index d55f63358..877728e6a 100644 --- a/public/javascript/ui/panel/tabs/ZombieTabCommands.js +++ b/public/javascript/ui/panel/tabs/ZombieTabCommands.js @@ -9,9 +9,9 @@ ZombieTab_Commands = function(zombie) { region: 'center', border: false, layout: 'fit', - autoScroll: true, - containerScroll: true, - html: "
Please select a command module from the command module tree on the left

Most command modules are javascript commands that are executed against the selected Hooked Browser. Command modules are able to perform any actions that can be achieved with javascript, for example they may gather information about the Hooked Browser, or perform other activities such as exploiting vulnerabilities within the local network of the Hooked Browser.

To learn more about writing your own modules review the wiki:
http://code.google.com/p/beef/wiki/DevDocs

The traffic lights indicate the following:
" + autoScroll: true + // commenting it for now: it's causing troubles (don't disappear) when enabling the autoScroll and anchor of form inputs + //html: "
Please select a command module from the command module tree on the left

Most command modules are javascript commands that are executed against the selected Hooked Browser. Command modules are able to perform any actions that can be achieved with javascript, for example they may gather information about the Hooked Browser, or perform other activities such as exploiting vulnerabilities within the local network of the Hooked Browser.

To learn more about writing your own modules review the wiki:
http://code.google.com/p/beef/wiki/DevDocs

The traffic lights indicate the following:
" }); var command_module_grid = new Ext.grid.GridPanel({