From 88a81f0fb3879b939fe6a9d3e8264a7cc3d1698b Mon Sep 17 00:00:00 2001 From: Elio Gavlinski Date: Wed, 12 Feb 2014 18:39:41 -0200 Subject: [PATCH] Flag private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inclusão da flag private em caráter experimental, pois não está documentada na API --- estilo.css | 7 +++++++ img/private.png | Bin 0 -> 202 bytes js/4sq.js | 36 +++++++++++++++++++++++------------- 3 files changed, 30 insertions(+), 13 deletions(-) create mode 100755 img/private.png diff --git a/estilo.css b/estilo.css index 3012ad7..d7a3307 100644 --- a/estilo.css +++ b/estilo.css @@ -307,3 +307,10 @@ a:hover { margin-left: 2px; margin-right: 2px; } +.privateIcon { + background-image: url(img/private.png); + width: 10px; + height: 10px; + margin-left: 2px; + margin-right: 2px; +} diff --git a/img/private.png b/img/private.png new file mode 100755 index 0000000000000000000000000000000000000000..388e341c95531f46d5f656f273b1a609a3e21a7f GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4NtU=qlmzFem6RtIr7}3CvH`2g|*)fFBE8bepu8gl-;S8`_Y|a x%Vr3s=@=!Xq_~L3G=wUe9kmc$l+D0lz|eL%WiwM+;1{6144$rjF6*2UngFKyL~Z~8 literal 0 HcmV?d00001 diff --git a/js/4sq.js b/js/4sq.js index 7c4da82..5b8ff1c 100644 --- a/js/4sq.js +++ b/js/4sq.js @@ -961,21 +961,20 @@ dojo.addOnLoad(function inicializar() { subMenu2.addChild(subMenu2Item1); subMenu2.addChild(new dijit.MenuSeparator); var subMenu2Item2 = new dijit.MenuItem({ - label: "Não existe", - id: "menuItemSinalizarDoesnt_exist", - iconClass: "doesnt_existIcon", + label: "Fechada", + id: "menuItemSinalizarClosed", + iconClass: "closedIcon", onClick: function() { - //dojo.query("input[name=selecao]:checked").forEach("desabilitarLinha(dijit.byId(item.id).value)"); - showDialogComment("doesnt_exist", deCode("não existe")); + showDialogComment("closed", "fechada"); } }); subMenu2.addChild(subMenu2Item2); var subMenu2Item3 = new dijit.MenuItem({ - label: "Fechada", - id: "menuItemSinalizarClosed", - iconClass: "closedIcon", + label: "Já terminou", + id: "menuItemSinalizarEvent_over", + iconClass: "event_overIcon", onClick: function() { - showDialogComment("closed", "fechada"); + showDialogComment("event_over", deCode("já terminou")); } }); subMenu2.addChild(subMenu2Item3); @@ -989,14 +988,25 @@ dojo.addOnLoad(function inicializar() { }); subMenu2.addChild(subMenu2Item4); var subMenu2Item5 = new dijit.MenuItem({ - label: "Já terminou", - id: "menuItemSinalizarEvent_over", - iconClass: "event_overIcon", + label: "Não existe", + id: "menuItemSinalizarDoesnt_exist", + iconClass: "doesnt_existIcon", onClick: function() { - showDialogComment("event_over", deCode("já terminou")); + //dojo.query("input[name=selecao]:checked").forEach("desabilitarLinha(dijit.byId(item.id).value)"); + showDialogComment("doesnt_exist", deCode("não existe")); } }); subMenu2.addChild(subMenu2Item5); + subMenu2.addChild(new dijit.MenuSeparator); + var subMenu2Item6 = new dijit.MenuItem({ + label: "Particular", + id: "menuItemSinalizarPrivate", + iconClass: "privateIcon", + onClick: function() { + showDialogComment("private", "particular"); + } + }); + subMenu2.addChild(subMenu2Item6); var menuItem2 = new dijit.PopupMenuItem({ label: "Sinalizar", id: "menuSinalizar",