jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window Multiple windows are getting opened.

This topic contains 1 reply, has 1 voice, and was last updated by  jayaraj.office 10 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Multiple windows are getting opened. #60247

    jayaraj.office
    Participant

    Hi jqx-users,

    I am using jqx-window for change password option. And upon closing the window, I actually hide it. now that the window is hidden, if the user clicks on change password button, the same window is made visible. There is no issue so far. However, if the user logs out and logs in and clicks on the change password button, two windows pop up. Since I have set the window’s isModel property as true, the window at the bottom is not clickable(it is visible). Now again, if the user closes and logs out. Upon re-login, he can see three windows.
    So what is actually happening. Please guide me.

    Thank you.

    Regards,
    Jay

    Multiple windows are getting opened. #60248

    jayaraj.office
    Participant

    my code woul be :

    $scope.PasswordResetWindow = {
    showCollapseButton: false,
    showCloseButton: true,
    title: ‘Password Reset Window’,
    height: 350,
    width: 800,
    position:’center ‘,
    animationType: ‘fade’,
    closeAnimationDuration: 100,
    showAnimationDuration: 500,
    closeButtonAction: ‘hide’,
    modalOpacity: 0.7,
    isModal: true,
    draggable:true,
    autoOpen:false,
    resizable: false,
    // close: function () {
    // $scope.closePwdChangeWin();
    // }
    };

    // FUNCTION TO CLOSE WINDOW
    // $scope.closePwdChangeWin = function() {
    // $(“.changePwdWindow”).jqxWindow(‘hide’);
    // };

    // FUNCTION TO OPEN THE WINDOW:
    // UPON CLICKING BUTTON, i CALL THE FUNCTION :
    $scope.ChangePassword = function(){
    $(“.changePwdWindow”).jqxWindow(‘open’);
    $(“.changePwdWindow”).jqxWindow(‘bringToFront’);
    };
    I am using angular js, so you can see I am using $scope as well.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.