mirror of https://github.com/apache/cloudstack.git
Cleanup formatting/whitespace
Conflicts: ui/scripts/vpc.js
This commit is contained in:
parent
e76f8dc577
commit
4a38f2be17
|
|
@ -14,7 +14,6 @@
|
|||
// KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
(function($, cloudStack) {
|
||||
var elems = {
|
||||
vpcConfigureTooltip: function(args) {
|
||||
|
|
@ -463,33 +462,33 @@
|
|||
};
|
||||
|
||||
switch(actionID) {
|
||||
case 'addVM':
|
||||
action({
|
||||
context: context,
|
||||
complete: function(args) {
|
||||
var pendingVMs = $tier.data('vpc-tier-pending-vms');
|
||||
case 'addVM':
|
||||
action({
|
||||
context: context,
|
||||
complete: function(args) {
|
||||
var pendingVMs = $tier.data('vpc-tier-pending-vms');
|
||||
|
||||
pendingVMs = pendingVMs ? pendingVMs + 1 : 1;
|
||||
$tier.addClass('loading');
|
||||
$tier.data('vpc-tier-pending-vms', pendingVMs);
|
||||
success(args);
|
||||
pendingVMs = pendingVMs ? pendingVMs + 1 : 1;
|
||||
$tier.addClass('loading');
|
||||
$tier.data('vpc-tier-pending-vms', pendingVMs);
|
||||
success(args);
|
||||
}
|
||||
});
|
||||
break;
|
||||
case 'remove':
|
||||
$loading.appendTo($tier);
|
||||
action({
|
||||
context: context,
|
||||
response: {
|
||||
success: function(args) {
|
||||
success($.extend(args, {
|
||||
remove: true
|
||||
}));
|
||||
}
|
||||
});
|
||||
break;
|
||||
case 'remove':
|
||||
$loading.appendTo($tier);
|
||||
action({
|
||||
context: context,
|
||||
response: {
|
||||
success: function(args) {
|
||||
success($.extend(args, {
|
||||
remove: true
|
||||
}));
|
||||
}
|
||||
}
|
||||
});
|
||||
break;
|
||||
case 'acl':
|
||||
}
|
||||
});
|
||||
break;
|
||||
case 'acl':
|
||||
// Show ACL dialog
|
||||
$('<div>').multiEdit(
|
||||
$.extend(true, {}, actionArgs.multiEdit, {
|
||||
|
|
@ -508,16 +507,16 @@
|
|||
}
|
||||
}).closest('.ui-dialog').overlay();
|
||||
break;
|
||||
default:
|
||||
$loading.appendTo($tier);
|
||||
action({
|
||||
context: context,
|
||||
complete: success,
|
||||
response: {
|
||||
success: success,
|
||||
error: function(args) { $loading.remove(); }
|
||||
}
|
||||
});
|
||||
default:
|
||||
$loading.appendTo($tier);
|
||||
action({
|
||||
context: context,
|
||||
complete: success,
|
||||
response: {
|
||||
success: success,
|
||||
error: function(args) { $loading.remove(); }
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
3171
ui/scripts/vpc.js
3171
ui/scripts/vpc.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue