All Downloads are FREE. Search and download functionalities are using the official Maven repository.

assets.js.views.admin.GoogleSettingsController.js Maven / Gradle / Ivy

The newest version!
/* 
 * Serposcope - SEO rank checker https://serposcope.serphacker.com/
 * 
 * Copyright (c) 2016 SERP Hacker
 * @author Pierre Nogues 
 * @license https://opensource.org/licenses/MIT MIT License
 */

/* global canonLoc, serposcope */

serposcope.adminGoogleSettingsController = function () {
    
    var resetSettings = function(elt){
        $('
', { 'action': $(this).attr("data-action"), 'method': 'post', 'target': '_top' }).append($('', { 'name': '_xsrf', 'value': $('#_xsrf').attr("data-value"), 'type': 'hidden' })).appendTo(document.body).submit(); }; var loadAsyncCanonical = function() { $.ajax({ url: '/assets/js/canonical-location.js', dataType: 'script', cache: true, // otherwise will get fresh copy every page load success: function () { configureSearchLocal(); } }); }; var configureSearchLocal = function(){ $('.search-local').typeahead({ source: canonLoc, minLength: 2, items: 100, matcher: function(arg){ var item = arg; var array = this.query.split(" "); for(var i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy