Commit Graph

181 Commits

Author SHA1 Message Date
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
Jessica Wang 008fcb8a27 cloudstack 3.0 UI - listView - when clicking fast between different rows, JS error "args.context.xxx is undefined" appears. e.g. "args.context.instances is undefined" appears when clicking fast between different rows in listView in instance page. Because when clicking fast, users might click another row before API response for this current row is back => which causes the JS error. The fix is to overlay the whole listView by loading image (spinning wheel image) until click-handling for this row is done (e.g. API response is back). 2012-03-09 16:48:14 -08:00
Jessica Wang 078cd90ad9 bug 14190: not refresh embedded data in corresponding list view row because data here is partial (e.g. if it's from Nics tab in instance page instead of details tab in instance page, data is just an array of Nic object, not an array of Instance object). 2012-03-09 13:02:52 -08:00
bfederle 35765419d1 Disable notification interval if in 'debug' mode (for unit tests) 2012-03-09 11:27:39 -08:00
Jessica Wang 595b7e5c04 cloudstack 3.0 UI - delete zone, delete pod, delete clouster in detailView - after action is finished, remove detailView and remove corresponding row from listView. 2012-03-09 11:26:06 -08:00
Jessica Wang 4761b9ec58 cloudstack 3.0 UI - (1) listView widget - add PreFilter() to exclude fields that shouldn't show upon conditions. (2) Instance page - add new field "Internal name" (e.g. "i-3-5-JW") that only shows for root-admin. 2012-03-08 13:30:06 -08:00
Jessica Wang a601ef4c11 bug 14023: extend dialog widget to support textarea field. 2012-03-07 10:04:17 -08:00
Brian Federle c0c80432a8 Add field ID to list view <th>s 2012-03-06 14:58:00 -08:00
Jessica Wang 6cf6820a3f switch definition of 'destroy' action with definition of 'remove' action. i.e. 'remove' action will hide detailView and remove corresponding row from listView after action is done. 2012-03-01 16:31:55 -08:00
Jessica Wang 41cab515ee cloudstack 3.0 UI - After destroy action is finished, remove the row from listView. 2012-03-01 15:36:03 -08:00
Jessica Wang 26e45b2b24 fix a JS error: $detailView.data("list-view-row") is undefined 2012-03-01 10:13:18 -08:00
Jessica Wang 389b981532 cloudstack 3.0 UI - detailView widget - refresh embedded data in corresponding list view row when dataProvider is called. 2012-02-29 17:23:36 -08:00
Brian Federle 541b18a0f4 Add tests for navigation and homepage; basic fixes 2012-02-29 11:54:40 -08:00
Brian Federle 6d9928ba32 Only show invitations if projects UI is initialized 2012-02-29 10:33:05 -08:00
Brian Federle 7f6d6c6b87 bug 13974
Fix table not including reorder column when switching filter
2012-02-23 16:17:14 -08:00