Commit Graph

195 Commits

Author SHA1 Message Date
Brian Federle 70687e4b44 CS-14844: Fix edit action
Fix edit action by referring to the new td.value <span>, instead of
td.value
2012-05-25 12:24:19 -07:00
Brian Federle 96982933df CS-14844
-If value label in detail view gets too long, then add horizontal
 scrollbar to value, to avoid truncation

-Lower font size to 11px (-1px) to better fit longer data into UI

reviewed-by: sonny
2012-05-25 12:08:29 -07:00
Jessica Wang 5168995905 CS-15015: cloudstack 3.0 UI - detailView widget - disable "pollAgainIfValueIsIn" function for now. 2012-05-21 16:12:01 -07:00
Jessica Wang 0282f2d8c9 cloudstack 3.0 UI - Instance page - detail view - keep polling newest info from server if VM state is Starting or Stopping. 2012-05-21 15:37:46 -07:00
Jessica Wang 62c456501a CS-15015: cloudstack 3.0 UI - detailView widget - add new property "pollAgainIfValueIsIn" to keep polling newest info from server when a column has a specific value (e.g. volume state column has value 'UploadNotStarted') 2012-05-21 14:04:15 -07:00
Brian Federle cab83385b4 CS-13861: Fix 'isChecked: false' not working on IE 2012-05-17 12:34:33 -07:00
Brian Federle f3a73d722f UI proprietary build: rename 'CloudStack' -> 'CloudPlatform'
When EULA is present for a proprietary build, show 'CloudPlatform'
instead of 'CloudStack' in the logo for the login form and top header.
2012-05-16 10:43:36 -07:00
Brian Federle 418c900c87 CS-14715
Concatenate long user names, to prevent header bar from wrapping
2012-05-14 12:42:59 -07:00
Jessica Wang b8058e7a5e CS-14116: cloudstack 3.0 UI - (1) add guest network dialog: make vlan/gateway/netmask required when network offering is "Shared". (2) dialog widget: be able to change field to required or not-required after createForm is rendered. 2012-05-04 15:20:27 -07:00
Jessica Wang 90ec0a6300 cloudstack 3.0 UI - dialog widget - add new function cloudStack.dialog.createFormField.validation.required.add(), cloudStack.dialog.createFormField.validation.required.remove() 2012-05-02 14:03:13 -07:00
Jessica Wang 08daf9eee0 cloudstack 3.0 UI - XSS - detailView in Edit mode - fix it to show original value instead of HTML-encoding value. 2012-04-23 22:33:18 +01:00
bfederle d062c21cb2 Sanitize input for multi-edit, notification widgets 2012-04-23 22:33:18 +01:00
bfederle 25f57c3f59 Sanitize detail view input rendering 2012-04-23 22:33:08 +01:00
bfederle b04254220f Sanitize list view input rendering 2012-04-23 22:32:17 +01:00
Jessica Wang 2f36d60bde bug 12688: fix a bug in listView widget that didn't pass correct filterBy object to loadBody(). 2012-04-16 14:59:23 -07:00
Jessica Wang 757c3542e8 cloudstack 3.0 UI - dialog widget - remove a line that produced a bug that change event is trigger before data is populated in this dropdown in selectFn($.extend(selectArgs, dependsOnArgs)). Besides, selectFn($.extend(selectArgs, dependsOnArgs)) includes the line, $input.trigger('change'), already. 2012-04-12 16:24:53 -07:00
Brian Federle 711551e34f UI: detail view
Support dynamically updating context on detail view load, to support cases
where certain context items are required by other elements loaded, but may not
be present in the browser history.
2012-04-05 15:44:08 -07:00
Brian Federle fc0327677a Cleanup whitespace + indentation for UI widgets 2012-04-03 15:35:36 -07:00
Brian Federle 6263ae9944 Detail view UI fix
Fix case where detail view data does not update, after async action
2012-04-03 14:42:34 -07:00
Jessica Wang d983462558 cloudstack 3.0 UI - global settings page - fix a bug that "value" column turned blank when Save button is being clicked. 2012-04-03 14:13:57 -07:00
frank 2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
Jessica Wang 3aed5ee830 bug 14586: cloudstack 3.0 UI - fix a bug that Download Template action didn't pop up a dialog box showing download URL. 2012-04-02 16:33:13 -07:00
Jessica Wang a62fb3a1f9 cloudstack 3.0 UI - domain page - fix a JS error that appears after a new domain is created - "context[$detailView.data('view-args').section] is undefined" 2012-03-30 17:26:48 -07:00
Jessica Wang 30dbea1ff7 bug 12421: cloudstack 3.0 UI - detailView widget - fix a bug that updated data returned by API call got lost, so failed to update detailView with updated data. 2012-03-30 13:32:49 -07:00
Pranav Saxena 3c0108ef58 Bug 14476: ESC causes UI to freeze 2012-03-28 12:42:13 -07:00
Jessica Wang 8fa7c114a6 bug 14488 - multiEdit widget - itemData[0] does not always have data. Only retrieve data when itemData[0] is not an empty object. 2012-03-26 10:56:29 -07:00
Sanjay Tripathi c796c86330 Bug 14067: Global config - clicking on Edit button twice gives javaScript error args.callback is not a function. 2012-03-26 11:41:38 +05:30
Brian Federle 5dccd91be1 Detail view: Always return true on args.response.success 2012-03-23 13:26:28 -07:00
Brian Federle 76528f37f1 bug 14240
Add VM details to name in PF/LB rule on click.

Note that the details panel now maximizes, to prevent additional panels
from accumulating by the user trying to click on multiple VMs when the
detail pane is present.
2012-03-21 12:13:19 -07:00
Brian Federle f82aa63815 bug 14380: Add cancel button to detail view edit action 2012-03-21 11:44:30 -07:00
Jessica Wang 995a338e3c cloudstack 3.0 UI - listView - fix a bug that table row was not removed from listView after Remove action on listView completed. 2012-03-21 11:20:02 -07:00
Brian Federle 07f6c0b337 Fix multi-edit when item data is not present 2012-03-21 11:03:50 -07:00
Brian Federle 6ef16cb79f bug 14351: Show VM name in PF, instead of UUID 2012-03-21 10:26:48 -07:00
Brian Federle a1099e34c2 UI: Better load balancer / multi-edit item naming
Currently, the items listed under the load balancer always use .name as
the field to display for the VM name.

Since 'instancename' is now used for the user-friendly name field,
_itemName metadata attribute can be specified in the rule's data
provider to tell which field should be rendered as the name field in the
list.
2012-03-21 09:56:40 -07:00
Brian Federle f9a7619ae5 Error handling for multiEdit remove action 2012-03-21 09:28:50 -07:00
Jessica Wang 9e352d5928 cloudstack 3.0 UI - listView widget - remove action - remove the corresponding row after action completes. 2012-03-20 15:15:27 -07:00
Jessica Wang b8dae7c57c cloudstack 3.0 UI - XSS - global setting page - fix a bug that notification got hacked after saving a value that has script tag (XSS attack). 2012-03-16 13:12:23 -07:00
Jessica Wang 31274387fc cloudstack 3.0 UI - XSS - listView - editable field - fix a bug that editable field sanitized value twice. 2012-03-16 11:53:42 -07:00
Jessica Wang 8e2fc79174 cloudStack 3.0 UI - validation - apply new method "disallowSpecialCharacters" to all textfields in dialog widget. 2012-03-15 15:31:30 -07:00
Jessica Wang f0cb103a98 cloudStack 3.0 UI - validation - add new method "disallowSpecialCharacters" which will disallow < and > (to prevent XSS attack) - apply this method in Add Domain dialog. 2012-03-15 14:47:33 -07:00
bfederle 0b28b02e5e Sanitize input for domain section/tree view 2012-03-15 10:30:28 -07:00
Jessica Wang 4191d28753 cloudstack 3.0 UI - XSS - detailView in Edit mode - fix it to show original value instead of HTML-encoding value. 2012-03-14 16:45:22 -07:00
bfederle 504e90b7cc Sanitize input for multi-edit, notification widgets 2012-03-14 16:11:22 -07:00
Jessica Wang 7f14bb70c5 cloudstack 3.0 UI - XSS - listView - fix it to show correct value. 2012-03-14 16:11:04 -07:00
Jessica Wang c4c68e2995 cloudstack 3.0 UI - fix a JS error "str.replace is undefined". 2012-03-14 14:36:44 -07:00
bfederle dd55f8ab99 Sanitize createForm input 2012-03-14 13:32:19 -07:00
bfederle d28de139b8 Sanitize detail view input rendering 2012-03-14 12:32:42 -07:00
bfederle 2c2e0accdd Sanitize list view input rendering 2012-03-14 12:19:38 -07:00
bfederle c5e726be90 Fix case where str is not present 2012-03-14 11:51:41 -07:00
bfederle f7524c22d4 Add helper function to sanitize user input strings
For any strings that require sanitization (i.e., strip
HTML/JavaScript), wrap the string around cloudStack.sanitize, or _s
for short. This currently will remove embedded HTML tags, which are
the main security issues present.

Example:

var str = '<script>Hello</script>My String';

_s(str) = '&lt;script&gt;Hello&lt;/script&gt;My String'
2012-03-14 10:54:41 -07:00