Every line of 'javascript refresh element' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
17 refresh(element?: FunctionsProviderItem): void { 18 this._onDidChangeTreeData.fire(element); 19 }
25 function refresh(id) { 26 if(id !== "avascript:void(0)") { 27 var iframeSelectName = "#" + id + " iframe" 28 $(iframeSelectName).attr('src', $(iframeSelectName).attr('src')); 29 } 30 }
131 function refresh(element) { 132 const url = window.location.href; 133 let match; 134 if (element.areaLink) { 135 // Match prefix 136 let prefix = element.href; 137 // If prefix doesn't end in slash, add a slash. 138 // We want to avoid matching in the middle of a folder name. 139 if (prefix.length < url.length && prefix.substr(-1) !== '/') { 140 prefix += '/'; 141 } 142 match = (url.substr(0, prefix.length) === prefix); 143 } else { 144 // Match whole path 145 match = (url === element.href); 146 } 147 element.current = match; 148 }
33 $(function refresh() { 34 $.getJSON('/', function(data, textStatus, jqXHR) { 35 $('#version').text(jqXHR.getResponseHeader('X-Pult-Version')); 36 $('#domains').empty(); 37 for (var key in data) { 38 if (key == 'pult.dev') { 39 continue; 40 } else if (key == 'next') { 41 $('#next').text(data.next); 42 } else { 43 $('<a>') 44 .addClass('list-group-item') 45 .attr('href', 'http://' + key) 46 .append($('<strong>').text(key)) 47 .append($('<span>').addClass('badge').text(data[key])) 48 .appendTo('#domains'); 49 } 50 } 51 }); 52 setTimeout(refresh, 3000); 53 });</span></strong></a>
46 refresh() { 47 if (!this.shadowRoot) { 48 return; 49 } 50 if ((!this.shadowRoot.querySelector('svg')) || (!this.shadowRoot.querySelector('slot'))) { 51 return; 52 } 53 setTimeout(() => this.redraw(), 100); 54 }
470 setTimeout(function refresh() { 471 $("#block").fadeOut("slow"); 472 }, 1000);
6 function auto_refresh(){ 7 var element = $(".auto-refresh"); 8 clearTimeout(refresh_timeout); 9 10 if (element[0]) { 11 refresh_timeout = setTimeout(function(){ 12 var autoRefreshIsOn = $(".auto-refresh").hasClass("on"); 13 var hasFocus = tfm.document.doesDocumentHasFocus(); 14 15 if (autoRefreshIsOn && hasFocus) { 16 Turbolinks.visit(window.location.href); 17 } 18 }, 60000); 19 } 20 }
91 function refresh() { 92 $.ajax({ 93 type: 'POST', 94 url: getPath() + '/createAllIndex', 95 success: function (data) { 96 if (data.result == 1) { 97 alert("生成索引成功!"); 98 } else { 99 alert(data.msg); 100 } 101 } 102 }); 103 }
10 function refresh() { 11 frame = document.getElementsByName( 'psoread' )[0]; 12 frame.contentWindow.location.reload() 13 }
181 function refresh(){ 182 $("#refresh_btn").button('loading'); 183 184 var status; 185 var time_interval; 186 187 $('input[class="status"]').parent('label').each(function(index, element){ 188 if($(this).hasClass('active')) { 189 var idx = 2-index; 190 status = idx; 191 } 192 }); 193 $('input[class="time_interval"]').parent('label').each(function(index, element){ 194 if($(this).hasClass('active')) { 195 var idx = 2-index; 196 time_interval = idx; 197 } 198 }); 199 console.log(':::'+status+'--'+time_interval); 200 201 task_query(status, time_interval); 202 203 $("#refresh_btn").button('reset'); 204 205 }