Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

HTML
<div id="keyWordContainerDiv" style="padding-top: 10px;"></div>

<script>

InitTotvsKeywords = function(){
	var _tagsEl = document.getElementsByClassName('aui-label-split-main');
	var _tags = [];

	for(var i=0; i < _tagsEl.length; i++){
		_tags.push(_tagsEl[i].innerHTML);
	}


	TOTVS_Keywords.Build('TOTVS_KeyWord', 'keyWordContainerDiv', _tags);
}
var _first_opened = false;
window.onload = function() { 
	InitTotvsKeywords();
	var _interval = setInterval(function(){


		if((document.getElementsByClassName('aui-dialog').length <= 0)){
			document.getElementsByClassName('show-labels-editor')[0].click();
			var _interval2 = setInterval(function(){
				if((document.getElementsByClassName('aui-dialog')[0].style.display == 'block' || document.getElementsByClassName('aui-dialog')[0].style.display == '') && _first_opened == false){
						_first_opened = true;
						document.getElementsByClassName('button-panel-cancel-link')[0].click();
						clearInterval(_interval2);
					}
			}, 50);
		}
		var _valor = (document.getElementsByClassName('aui-dialog').length > 0) ? document.getElementsByClassName('aui-label-split-main').length / 2 : document.getElementsByClassName('aui-label-split-main').length;
		if(TOTVS_Keywords.Tags.Length != _valor){
			TOTVS_Keywords.Container.removeChild(document.getElementById(TOTVS_Keywords.Id + "_ContainerWrapper"));
			InitTotvsKeywords();
		}
	}, 1000);
}
WindowLoad('TOTVS_KeyWord', 'keyWordContainerDiv', _tags);

</script>


TOTVS TDN Document New Model

...