Subversion Repositories oidplus

Rev

Rev 699 | Rev 781 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 699 Rev 704
Line 139... Line 139...
139
        var mayClose = performCloseQueryCB();
139
        var mayClose = performCloseQueryCB();
140
        if (!force && !mayClose) return false;
140
        if (!force && !mayClose) return false;
141
 
141
 
142
        performCloseCB();
142
        performCloseCB();
143
 
143
 
-
 
144
        $.xhrPool.abortAll();
-
 
145
 
144
        if (reselect) {
146
        if (reselect) {
145
                $('#oidtree').jstree('deselect_all');
147
                $('#oidtree').jstree('deselect_all');
146
 
148
 
147
                popstate_running = true; // don't call openOidInPanel during tree selection
149
                popstate_running = true; // don't call openOidInPanel during tree selection
148
                try {
150
                try {
Line 152... Line 154...
152
                                // If it can be found, then open all parent nodes and select the node
154
                                // If it can be found, then open all parent nodes and select the node
153
                                $.ajax({
155
                                $.ajax({
154
                                        url:"ajax.php",
156
                                        url:"ajax.php",
155
                                        method:"POST",
157
                                        method:"POST",
156
                                        beforeSend: function(jqXHR, settings) {
158
                                        beforeSend: function(jqXHR, settings) {
157
                                                $.xhrPool.abortAll();
159
                                                //$.xhrPool.abortAll();
158
                                                $.xhrPool.add(jqXHR);
160
                                                $.xhrPool.add(jqXHR);
159
                                        },
161
                                        },
160
                                        complete: function(jqXHR, text) {
162
                                        complete: function(jqXHR, text) {
161
                                                $.xhrPool.remove(jqXHR);
163
                                                $.xhrPool.remove(jqXHR);
162
                                        },
164
                                        },
Line 203... Line 205...
203
        // Normal opening of a description
205
        // Normal opening of a description
204
        $.ajax({
206
        $.ajax({
205
                url:"ajax.php",
207
                url:"ajax.php",
206
                method:"GET",
208
                method:"GET",
207
                beforeSend: function(jqXHR, settings) {
209
                beforeSend: function(jqXHR, settings) {
208
                        $.xhrPool.abortAll();
210
                        //$.xhrPool.abortAll();
209
                        $.xhrPool.add(jqXHR);
211
                        $.xhrPool.add(jqXHR);
210
                },
212
                },
211
                complete: function(jqXHR, text) {
213
                complete: function(jqXHR, text) {
212
                        $.xhrPool.remove(jqXHR);
214
                        $.xhrPool.remove(jqXHR);
213
                },
215
                },
Line 478... Line 480...
478
function mobileNavButtonHover(sender) {
480
function mobileNavButtonHover(sender) {
479
        sender.classList.toggle("hover");
481
        sender.classList.toggle("hover");
480
}
482
}
481
 
483
 
482
function gotoButtonClicked() {
484
function gotoButtonClicked() {
483
        openOidInPanel($("#gotoedit").val(), 1);
485
        openOidInPanel($("#gotoedit").val(), true);
484
}
486
}
485
 
487
 
486
function jumpToAnchor(anchor) {
488
function jumpToAnchor(anchor) {
487
        window.location.href = "#" + anchor;
489
        window.location.href = "#" + anchor;
488
}
490
}