stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anuruddhal <...@git.apache.org>
Subject [GitHub] stratos pull request: Adding remove-signup button
Date Thu, 10 Sep 2015 09:09:27 GMT
Github user anuruddhal commented on a diff in the pull request:

    https://github.com/apache/stratos/pull/460#discussion_r39139203
  
    --- Diff: components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_form.hbs
---
    @@ -472,4 +482,48 @@
                 ]
             });
         });
    +
    +      $('.general-table').on('click', '.hover-remove-signup', function (event) {
    +
    +        var payload =$(this).attr("id");
    +        noty({
    +            layout: 'bottomRight',
    +            type: 'warning',
    +            text: 'Are you sure you want to remove signup for application: <strong>'+$(this).attr("id")
+ "</strong> ?",
    +            buttons: [
    +                {addClass: 'btn btn-primary', text: 'Yes', onClick: function($noty) {
    +                    var formtype = 'unsignupapplication';
    +                    $noty.close();
    +
    +                    $.ajax({
    +                        type: "POST",
    +                        url: caramel.context + "/controllers/applications/application_requests.jag",
    +                        dataType: 'json',
    +                        data: { "applicationId": payload, "formtype": formtype },
    +                        success: function (data) {
    +                            if (data.status == 'error') {
    +                                var n = noty({text: data.message, layout: 'bottomRight',
type: 'error'});
    +                            } else if (data.status == 'warning') {
    +                                var n = noty({text: data.message, layout: 'bottomRight',
type: 'warning'});
    +                            } else {
    +                                var n = noty({text: data.message, layout: 'bottomRight',
type: 'success'});
    +                            }
    +                            window.setTimeout(function(){
    +                                location.reload();
    +                            }, 1000);
    +                        }
    +                    }).always(function () {
    --- End diff --
    
    Removed always method


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message