From 82ec6885ebfe85eade68162471b0ec6b50cb9e3c Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Sun, 13 Dec 2015 01:50:45 -0200 Subject: [PATCH] =?UTF-8?q?Criado=20quatro=20formatos=20de=20visualiza?= =?UTF-8?q?=C3=A7=C3=A3o=20de=20uma=20Norma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TMS - Texto Multivigente Sequencial - TMI - Texto Multivigente Integrado com Realce de Aterações - TVL - Texto Vigente COM Link para Normas Alteradoras - TVT - Texto Vigente --- .../migrations/0030_auto_20151203_1114.py | 19 ------------------- .../migrations/0030_auto_20151203_1117.py | 19 ------------------- static/js/compilacao_view.js | 5 +++-- 3 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 compilacao/migrations/0030_auto_20151203_1114.py delete mode 100644 compilacao/migrations/0030_auto_20151203_1117.py diff --git a/compilacao/migrations/0030_auto_20151203_1114.py b/compilacao/migrations/0030_auto_20151203_1114.py deleted file mode 100644 index 27b47f052..000000000 --- a/compilacao/migrations/0030_auto_20151203_1114.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('compilacao', '0029_auto_20151201_1611'), - ] - - operations = [ - migrations.AlterField( - model_name='tipodispositivo', - name='relacoes_diretas_pai_filho', - field=models.ManyToManyField(to='compilacao.TipoDispositivo', related_name='+', through='compilacao.TipoDispositivoRelationship'), - ), - ] diff --git a/compilacao/migrations/0030_auto_20151203_1117.py b/compilacao/migrations/0030_auto_20151203_1117.py deleted file mode 100644 index 4daa1e950..000000000 --- a/compilacao/migrations/0030_auto_20151203_1117.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import models, migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('compilacao', '0029_auto_20151201_1611'), - ] - - operations = [ - migrations.AlterField( - model_name='tipodispositivo', - name='relacoes_diretas_pai_filho', - field=models.ManyToManyField(to='compilacao.TipoDispositivo', through='compilacao.TipoDispositivoRelationship', related_name='+'), - ), - ] diff --git a/static/js/compilacao_view.js b/static/js/compilacao_view.js index 372e44e93..1e44e635e 100644 --- a/static/js/compilacao_view.js +++ b/static/js/compilacao_view.js @@ -17,6 +17,7 @@ $(window).load(function() { }, 100); }); + function isElementInViewport (el) { //special bonus for those using jQuery @@ -46,8 +47,6 @@ function textoMultiVigente(item, diff) { } } - - $(".cp .tipo-vigencias a").removeClass("selected") $(item).addClass("selected") $(".dptt.desativado").removeClass("displaynone"); @@ -79,6 +78,7 @@ function textoMultiVigente(item, diff) { if (diff.length > 0) { $('#d'+pks).closest('.desativado').addClass("displaynone"); + var clone = $('#da'+pk).clone(); $('#da'+pk).after( clone ); $('#da'+pk).addClass('displaynone'); @@ -141,6 +141,7 @@ function textoVigente(item, link) { scrollTop: $(elv).parent().offset().top - 60 }, 0); } + } $(document).ready(function() {