Browse Source

Criado quatro formatos de visualização de uma Norma

- TMS - Texto Multivigente Sequencial
- TMI - Texto Multivigente Integrado com Realce de Aterações
- TVL - Texto Vigente COM Link para Normas Alteradoras
- TVT - Texto Vigente
pull/98/head
LeandroRoberto 9 years ago
parent
commit
0c6663c7f5
  1. 19
      compilacao/migrations/0030_auto_20151203_1114.py
  2. 19
      compilacao/migrations/0030_auto_20151203_1117.py
  3. 2
      compilacao/migrations/0032_auto_20151213_1538.py
  4. 6
      static/js/compilacao_view.js

19
compilacao/migrations/0030_auto_20151203_1114.py

@ -0,0 +1,19 @@
# -*- 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'),
),
]

19
compilacao/migrations/0030_auto_20151203_1117.py

@ -0,0 +1,19 @@
# -*- 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='+'),
),
]

2
compilacao/migrations/0030_auto_20151203_1514.py → compilacao/migrations/0032_auto_20151213_1538.py

@ -7,7 +7,7 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('compilacao', '0029_auto_20151201_1611'),
('compilacao', '0031_merge'),
]
operations = [

6
static/js/compilacao_view.js

@ -24,8 +24,8 @@ function textoMultiVigente(item, diff) {
if (diff) {
$(".dtxt[id^='da'").each(function() {
if ($(this).html().indexOf('</table>') > 0)
if ( $(this).html().search( /<\/\w+>/g ) > 0)
return;
var pk = $(this).attr('pk')
@ -44,7 +44,7 @@ function textoMultiVigente(item, diff) {
var diff = JsDiff.diffWordsWithSpace($(a).text(), $(b).text());
if (diff.length > 0) {
$('#d'+pk).addClass("displaynone");
$('#d'+pks).closest('.desativado').addClass("displaynone");
var clone = $('#da'+pk).clone();
$('#da'+pk).after( clone );

Loading…
Cancel
Save