1/** 2 * Created by rbensman on 08/05/19. 3 */ 4/* 5 6 /** 7 * Add new command for update account after made changes 8 */ 9(function($, Drupal) { 10 Drupal.AjaxCommands.prototype.updateAccount = function(ajax, response, status){ 11 // Place content in current-msg div. 12 var updateTopPatronMenu = function () { 13 for (var req in response.requests) { 14 //console.log(response.requests[req]) 15 (function(req) { 16 $.get(response.url + response.requests[req] + '/total').done(function (result) { 17 //console.log('.' + response.content + response.requests[req] + '-total', result.total) 18 $('.' + response.content + response.requests[req] + '-total').html(result.total); 19 }) 20 })(req) 21 } 22 } 23 if('login'== response.status) { 24 $.get( response.content_main).done( function( data ) { 25 var manuMarkUp = data['#markup']; 26 $('#navbar').html( manuMarkUp ).promise().done(function(){ 27 console.log(response); 28 updateTopPatronMenu(); 29 //updateNavbarUserInfo(); 30 }); 31 }) 32 } else if ('reload'== response.status) { 33 location.reload(); 34 } 35 else { 36 updateTopPatronMenu(); 37 } 38 } 39 if($('#pin-change-alert').length > 0) { 40 $( "#pin-change-alert" ).closest('.alert-success').css( "background-color", "red" ); 41 } 42})(jQuery, Drupal); 43
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.