assets.js.views.GroupController.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 serposcope */
serposcope.GroupController = function () {
var resizeTabContent = function(){
$('.tab-content.tab-groups').css("min-height", serposcope.theme.availableHeight() - 100);
};
var deleteGroup = function(elt) {
var name = $(elt.currentTarget).attr("data-name");
var href= $(elt.currentTarget).attr("href");
if(!confirm("Delete group \"" + name + "\" ?\nAll history will be erased.")){
return false;
}
$('