Commit 566c8c6a75132348d762482ab5d7fd83155735fe
1 parent
3fdb016f
Exists in
master
and in
7 other branches
#276
Showing
8 changed files
with
17 additions
and
15 deletions
Show diff stats
admin/html/menus.html
... | ... | @@ -39,6 +39,7 @@ |
39 | 39 | <div class="ft"></div> |
40 | 40 | </div> |
41 | 41 | <input onclick="adicionaLinha()" type=button id=adiciona value="Adicionar um novo menu" /> |
42 | +Após modificar os dados, salve a linha antes de fechar o formulário. | |
42 | 43 | <br> |
43 | 44 | <p>Menus existentes: (clique na célula para editar e salve a linha editada)</p> |
44 | 45 | <div id="tabela" style="left:-5px;"></div> | ... | ... |
admin/js/arvore.js
... | ... | @@ -4,19 +4,19 @@ function initMenu() |
4 | 4 | var editorDeMenus = function() |
5 | 5 | { |
6 | 6 | core_montaEditor("","600px","500px","pegaMenus") |
7 | - $i("editor_bd").innerHTML = '<input type=button id=adicionaNovoMenu value="Adicionar um novo menu" style="left:-5px;" /><br><br><div id="tabela" style="left:-5px;"> </div>' | |
7 | + $i("editor_bd").innerHTML = '<input type=button id=adicionaNovoMenu value="Adicionar um novo menu" style="left:-5px;" /><p>Antes de fechar o formulário, salve as alterações feitas.<br><div id="tabela" style="left:-5px;"> </div>' | |
8 | 8 | initEditorMenu() |
9 | 9 | }; |
10 | 10 | var editorDeGrupos = function() |
11 | 11 | { |
12 | 12 | core_montaEditor("","600px","500px") |
13 | - $i("editor_bd").innerHTML = '<input type=button id=adicionaNovoGrupo value="Adicionar um novo grupo" style="left:-5px;" /><br><br><div id="tabela" style="left:-5px;"> </div>' | |
13 | + $i("editor_bd").innerHTML = '<input type=button id=adicionaNovoGrupo value="Adicionar um novo grupo" style="left:-5px;" /><p>Antes de fechar o formulário, salve as alterações feitas.<br><div id="tabela" style="left:-5px;"> </div>' | |
14 | 14 | initEditorGrupos() |
15 | 15 | }; |
16 | 16 | var editorDeSubGrupos = function() |
17 | 17 | { |
18 | 18 | core_montaEditor("","600px","500px") |
19 | - $i("editor_bd").innerHTML = '<input type=button id=adicionaNovoSubGrupo value="Adicionar um novo sub-grupo" style="left:-5px;" /><br><br><div id="tabela" style="left:-5px;"> </div>' | |
19 | + $i("editor_bd").innerHTML = '<input type=button id=adicionaNovoSubGrupo value="Adicionar um novo sub-grupo" style="left:-5px;" /><p>Antes de fechar o formulário, salve as alterações feitas.<br><div id="tabela" style="left:-5px;"> </div>' | |
20 | 20 | initEditorSubGrupos() |
21 | 21 | }; |
22 | 22 | ... | ... |
admin/js/core.js
... | ... | @@ -962,6 +962,7 @@ function core_gravaLinha(mensagem,row,sUrl,nomeFuncao) |
962 | 962 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]) |
963 | 963 | var linha = myDataTable.getTrEl(rec) |
964 | 964 | linha.style.color = ""; |
965 | + linha.style.textDecoration = "none"; | |
965 | 966 | } |
966 | 967 | }, |
967 | 968 | failure:core_handleFailure, | ... | ... |
admin/js/grupos.js
... | ... | @@ -99,8 +99,9 @@ function montaTabela_G(dados) |
99 | 99 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
100 | 100 | { |
101 | 101 | if(oArgs.newData != oArgs.oldData) |
102 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | |
102 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) | |
103 | 103 | linha.style.color = "blue"; |
104 | + linha.style.textDecoration = "blink"; | |
104 | 105 | }); |
105 | 106 | }; |
106 | 107 | core_carregando("desativa"); | ... | ... |
admin/js/menu.js
... | ... | @@ -50,9 +50,7 @@ function montaTabela_M(dados) |
50 | 50 | var column = myDataTable.getColumn(oArgs.target); |
51 | 51 | //if(column.editor != "null") |
52 | 52 | if(!YAHOO.lang.isNull(column.editor)) |
53 | - { | |
54 | - YAHOO.util.Dom.addClass(elCell,'yui-dt-highlighted'); | |
55 | - } | |
53 | + {YAHOO.util.Dom.addClass(elCell,'yui-dt-highlighted');} | |
56 | 54 | }; |
57 | 55 | myDataTable.unhighlightEditableCell = function(oArgs) |
58 | 56 | { |
... | ... | @@ -95,10 +93,7 @@ function montaTabela_M(dados) |
95 | 93 | myDataTable.subscribe("editorUpdateEvent", function(oArgs) |
96 | 94 | { |
97 | 95 | if(oArgs.editor.column.key === "active") |
98 | - { | |
99 | - this.saveCellEditor(); | |
100 | - | |
101 | - } | |
96 | + {this.saveCellEditor();} | |
102 | 97 | }); |
103 | 98 | myDataTable.subscribe("editorBlurEvent", function(oArgs) |
104 | 99 | { |
... | ... | @@ -107,8 +102,9 @@ function montaTabela_M(dados) |
107 | 102 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
108 | 103 | { |
109 | 104 | if(oArgs.newData != oArgs.oldData) |
110 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | |
105 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) | |
111 | 106 | linha.style.color = "blue"; |
107 | + linha.style.textDecoration = "blink"; | |
112 | 108 | }); |
113 | 109 | //destroy |
114 | 110 | }; | ... | ... |
admin/js/perfis.js
... | ... | @@ -95,8 +95,9 @@ function montaTabela(dados) |
95 | 95 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
96 | 96 | { |
97 | 97 | if(oArgs.newData != oArgs.oldData) |
98 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | |
98 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) | |
99 | 99 | linha.style.color = "blue"; |
100 | + linha.style.textDecoration = "blink"; | |
100 | 101 | }); |
101 | 102 | |
102 | 103 | myDataTable.subscribe("editorBlurEvent", function(oArgs) | ... | ... |
admin/js/subgrupos.js
... | ... | @@ -99,8 +99,9 @@ function montaTabela_S(dados) |
99 | 99 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
100 | 100 | { |
101 | 101 | if(oArgs.newData != oArgs.oldData) |
102 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | |
102 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) | |
103 | 103 | linha.style.color = "blue"; |
104 | + linha.style.textDecoration = "blink"; | |
104 | 105 | }); |
105 | 106 | |
106 | 107 | }; | ... | ... |
admin/js/tags.js
... | ... | @@ -98,8 +98,9 @@ function montaTabela(dados) |
98 | 98 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
99 | 99 | { |
100 | 100 | if(oArgs.newData != oArgs.oldData) |
101 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | |
101 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) | |
102 | 102 | linha.style.color = "blue"; |
103 | + linha.style.textDecoration = "blink"; | |
103 | 104 | }); |
104 | 105 | |
105 | 106 | }; | ... | ... |