Every line of 'return to previous page' 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.
50 previousPage() { 51 this.currentPage -= 1; 52 this.updateMeta(); 53 }
240 function previousPage() { 241 if (page > 1) { 242 page--; 243 244 var svg; 245 if ((typeof svgs !== 'undefined') && (svgs.length > 0)) { 246 svg = svgs[page]; 247 } 248 else { 249 svg = vrvToolkit.renderPage(page); // render a page 250 } 251 252 document.getElementById("svg_output").innerHTML = svg; // print it 253 svgElement = document.getElementsByTagName("svg")[0]; // get the svg element in the html tree 254 layoutSvg(); 255 updateNavigation(); 256 } 257 }
31 previous() { 32 if (this.currentPage) { 33 this.goto(this.currentPage.index - 1); 34 } 35 }
108 async clickPrevious() { 109 await this.previousButton.click(); 110 }
188 noPrevious(): boolean { 189 return this.page === 1; 190 }
29 prevPage() { 30 return Math.max(1, this.page - 1); 31 }
16 function previous(){ //Goes back to the previous slide 17 if (selected_topic > 0){ 18 selected_topic--; 19 selected_slide = 1; 20 setDots(); 21 } 22 }
210 previousPage(): number { 211 return this.model.currentPage <= 1 ? 1 : this.model.currentPage - 1; 212 }
32 getPrevious() { 33 return element(by.css('#pagination .pagination-previous a')); 34 }
139 prev() { 140 if (this.hasPreviousPage()) { 141 this.goTo(this.getPreviousPage()) 142 return true 143 } 144 145 return false 146 }