Skip to content
Snippets Groups Projects
Commit 83b5cc40 authored by Branson Stephens's avatar Branson Stephens
Browse files

starting to tweak dialogues

parent 80105252
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@
"dojox/layout/ScrollPane",
"dojo/store/Memory",
"dijit/form/ComboBox",
"dijit/Dialog",
"dojox/image/LightboxNano",
"dijit/_editor/plugins/TextColor",
"dijit/_editor/plugins/LinkDialog",
......@@ -36,7 +37,7 @@
"dijit/_editor/plugins/FullScreen",
"dojo/parser",
"dojo/domReady!"], function (dom, on, request, domForm, Editor, Save, Preview,
Button, TitlePane, ScrollPane, Memory, ComboBox) {
Button, TitlePane, ScrollPane, Memory, ComboBox, Dialog) {
dojo.parser.parse();
......@@ -225,6 +226,14 @@
{% endif %}
}, "existingTagSelect");
var tagResultDialog = new Dialog();
var actionBar = dom.create("div", {
"class": "dijitDialogPaneContentArea",
"innerHTML": "my testy"
}, tagResultDialog.containerNode);
var form = dom.byId('existingTagForm');
on(form, "submit", function(evt){
evt.stopPropagation();
......@@ -241,14 +250,19 @@
data: {displayName: tagDispName}
}).then(
function(text){
alert(text);
// You may want to force the page to reload.
tagResultDialog.set("content", text);
tagResultDialog.show();
//location.reload(true);
},
function(error){alert(error);}
function(error){
tagResultDialog.set("content", error);
tagResultDialog.show();
}
);
});
// Messing around with the dialog.
});
</script>
......@@ -537,6 +551,9 @@
<th>No.</th>
<th>{{ "logtime"|timeselect:"utc" }} Log Entry Created</th>
<th>Submitter</th>
{% if object.getAvailableTags %}
<th>Tags</th>
{% endif %}
<th>Comment</th>
<th>&nbsp;</th>
</tr>
......@@ -545,6 +562,15 @@
<td>{{log.getN}}
<td>{{log.created|multiTime:"logtime"}}</td>
<td>{{log.issuer}}</td>
{% if object.getAvailableTags %}
<td>
<table>
{%for tag in log.tag_set.all %}
<tr> <td> {{tag.name}} </td> </tr>
{% endfor %}
</table>
</td>
{% endif %}
<td>{{log.comment|sanitize}}
{% if log.fileurl %}
<a href="{{log.fileurl}}">{{log.filename}}</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment