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,6 +39,7 @@ | ||
| 39 | <div class="ft"></div> | 39 | <div class="ft"></div> |
| 40 | </div> | 40 | </div> |
| 41 | <input onclick="adicionaLinha()" type=button id=adiciona value="Adicionar um novo menu" /> | 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 | <br> | 43 | <br> |
| 43 | <p>Menus existentes: (clique na célula para editar e salve a linha editada)</p> | 44 | <p>Menus existentes: (clique na célula para editar e salve a linha editada)</p> |
| 44 | <div id="tabela" style="left:-5px;"></div> | 45 | <div id="tabela" style="left:-5px;"></div> |
admin/js/arvore.js
| @@ -4,19 +4,19 @@ function initMenu() | @@ -4,19 +4,19 @@ function initMenu() | ||
| 4 | var editorDeMenus = function() | 4 | var editorDeMenus = function() |
| 5 | { | 5 | { |
| 6 | core_montaEditor("","600px","500px","pegaMenus") | 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 | initEditorMenu() | 8 | initEditorMenu() |
| 9 | }; | 9 | }; |
| 10 | var editorDeGrupos = function() | 10 | var editorDeGrupos = function() |
| 11 | { | 11 | { |
| 12 | core_montaEditor("","600px","500px") | 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 | initEditorGrupos() | 14 | initEditorGrupos() |
| 15 | }; | 15 | }; |
| 16 | var editorDeSubGrupos = function() | 16 | var editorDeSubGrupos = function() |
| 17 | { | 17 | { |
| 18 | core_montaEditor("","600px","500px") | 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 | initEditorSubGrupos() | 20 | initEditorSubGrupos() |
| 21 | }; | 21 | }; |
| 22 | 22 |
admin/js/core.js
| @@ -962,6 +962,7 @@ function core_gravaLinha(mensagem,row,sUrl,nomeFuncao) | @@ -962,6 +962,7 @@ function core_gravaLinha(mensagem,row,sUrl,nomeFuncao) | ||
| 962 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]) | 962 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]) |
| 963 | var linha = myDataTable.getTrEl(rec) | 963 | var linha = myDataTable.getTrEl(rec) |
| 964 | linha.style.color = ""; | 964 | linha.style.color = ""; |
| 965 | + linha.style.textDecoration = "none"; | ||
| 965 | } | 966 | } |
| 966 | }, | 967 | }, |
| 967 | failure:core_handleFailure, | 968 | failure:core_handleFailure, |
admin/js/grupos.js
| @@ -99,8 +99,9 @@ function montaTabela_G(dados) | @@ -99,8 +99,9 @@ function montaTabela_G(dados) | ||
| 99 | myDataTable.subscribe("editorSaveEvent", function(oArgs) | 99 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
| 100 | { | 100 | { |
| 101 | if(oArgs.newData != oArgs.oldData) | 101 | if(oArgs.newData != oArgs.oldData) |
| 102 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | 102 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) |
| 103 | linha.style.color = "blue"; | 103 | linha.style.color = "blue"; |
| 104 | + linha.style.textDecoration = "blink"; | ||
| 104 | }); | 105 | }); |
| 105 | }; | 106 | }; |
| 106 | core_carregando("desativa"); | 107 | core_carregando("desativa"); |
admin/js/menu.js
| @@ -50,9 +50,7 @@ function montaTabela_M(dados) | @@ -50,9 +50,7 @@ function montaTabela_M(dados) | ||
| 50 | var column = myDataTable.getColumn(oArgs.target); | 50 | var column = myDataTable.getColumn(oArgs.target); |
| 51 | //if(column.editor != "null") | 51 | //if(column.editor != "null") |
| 52 | if(!YAHOO.lang.isNull(column.editor)) | 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 | myDataTable.unhighlightEditableCell = function(oArgs) | 55 | myDataTable.unhighlightEditableCell = function(oArgs) |
| 58 | { | 56 | { |
| @@ -95,10 +93,7 @@ function montaTabela_M(dados) | @@ -95,10 +93,7 @@ function montaTabela_M(dados) | ||
| 95 | myDataTable.subscribe("editorUpdateEvent", function(oArgs) | 93 | myDataTable.subscribe("editorUpdateEvent", function(oArgs) |
| 96 | { | 94 | { |
| 97 | if(oArgs.editor.column.key === "active") | 95 | if(oArgs.editor.column.key === "active") |
| 98 | - { | ||
| 99 | - this.saveCellEditor(); | ||
| 100 | - | ||
| 101 | - } | 96 | + {this.saveCellEditor();} |
| 102 | }); | 97 | }); |
| 103 | myDataTable.subscribe("editorBlurEvent", function(oArgs) | 98 | myDataTable.subscribe("editorBlurEvent", function(oArgs) |
| 104 | { | 99 | { |
| @@ -107,8 +102,9 @@ function montaTabela_M(dados) | @@ -107,8 +102,9 @@ function montaTabela_M(dados) | ||
| 107 | myDataTable.subscribe("editorSaveEvent", function(oArgs) | 102 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
| 108 | { | 103 | { |
| 109 | if(oArgs.newData != oArgs.oldData) | 104 | if(oArgs.newData != oArgs.oldData) |
| 110 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | 105 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) |
| 111 | linha.style.color = "blue"; | 106 | linha.style.color = "blue"; |
| 107 | + linha.style.textDecoration = "blink"; | ||
| 112 | }); | 108 | }); |
| 113 | //destroy | 109 | //destroy |
| 114 | }; | 110 | }; |
admin/js/perfis.js
| @@ -95,8 +95,9 @@ function montaTabela(dados) | @@ -95,8 +95,9 @@ function montaTabela(dados) | ||
| 95 | myDataTable.subscribe("editorSaveEvent", function(oArgs) | 95 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
| 96 | { | 96 | { |
| 97 | if(oArgs.newData != oArgs.oldData) | 97 | if(oArgs.newData != oArgs.oldData) |
| 98 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | 98 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) |
| 99 | linha.style.color = "blue"; | 99 | linha.style.color = "blue"; |
| 100 | + linha.style.textDecoration = "blink"; | ||
| 100 | }); | 101 | }); |
| 101 | 102 | ||
| 102 | myDataTable.subscribe("editorBlurEvent", function(oArgs) | 103 | myDataTable.subscribe("editorBlurEvent", function(oArgs) |
admin/js/subgrupos.js
| @@ -99,8 +99,9 @@ function montaTabela_S(dados) | @@ -99,8 +99,9 @@ function montaTabela_S(dados) | ||
| 99 | myDataTable.subscribe("editorSaveEvent", function(oArgs) | 99 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
| 100 | { | 100 | { |
| 101 | if(oArgs.newData != oArgs.oldData) | 101 | if(oArgs.newData != oArgs.oldData) |
| 102 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | 102 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) |
| 103 | linha.style.color = "blue"; | 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,8 +98,9 @@ function montaTabela(dados) | ||
| 98 | myDataTable.subscribe("editorSaveEvent", function(oArgs) | 98 | myDataTable.subscribe("editorSaveEvent", function(oArgs) |
| 99 | { | 99 | { |
| 100 | if(oArgs.newData != oArgs.oldData) | 100 | if(oArgs.newData != oArgs.oldData) |
| 101 | - var linha = myDataTable.getTrEl(oArgs.editor.record) | 101 | + var linha = myDataTable.getTrEl(oArgs.editor.getRecord()) |
| 102 | linha.style.color = "blue"; | 102 | linha.style.color = "blue"; |
| 103 | + linha.style.textDecoration = "blink"; | ||
| 103 | }); | 104 | }); |
| 104 | 105 | ||
| 105 | }; | 106 | }; |