Path: blob/master/extensions/admin_ui/media/javascript/ui/panel/PanelStatusBar.js
1155 views
//1// Copyright (c) 2006-2025 Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56/*7* The Beef_StatusBar class provides the functionality of the status bar8* at the bottom of each tab in the UI9*10* @param: {String} unique string for setting the status bar id.11*12*/1314Beef_StatusBar = function(unique_id) {1516var update_fail_wait = 2000; // delay before showing ready status17var update_sent_wait = 1000; // delay before showing ready status1819Beef_StatusBar.superclass.constructor.call(this, {20id: 'commands-bbar-zombie-' + unique_id,2122// defaults to use when the status is cleared:23defaultText: 'Ready',24defaultIconCls: 'x-status-valid',2526// values to set initially:27text: 'Ready',28iconCls: 'x-status-valid',2930// update status bar to ready31update_ready: function(str) {32var display_str = str || "Ready";33this.setStatus({34text: display_str,35iconCls: 'x-status-valid'36});37},3839// update status bar to fail40update_fail: function(str){41var display_str = str || "Error!";4243this.setStatus({44text: display_str,45iconCls: 'x-status-error',46clear: {47wait: update_fail_wait,48anim: true,49useDefaults: true50}51});52},5354// update status bar to sending55update_sending: function(str) {56var display_str = str || "Sending...";57this.showBusy(display_str);58},5960// update status bar to sent61update_sent: function(str) {62var display_str = str || "Sent";63this.setStatus({64text: display_str,65iconCls: 'x-status-valid',66clear: {67wait: update_sent_wait,68anim: true,69useDefaults: true70}71});72}7374});7576};7778Ext.extend(Beef_StatusBar, Ext.ux.StatusBar, {} );79808182