fix publishing options

This commit is contained in:
boyska 2018-12-22 23:38:41 +01:00
parent 9f06d02e52
commit 8ac2bbaf4f
2 changed files with 35 additions and 0 deletions

12
grog/share_dialog.html Normal file
View file

@ -0,0 +1,12 @@
<form>
<div> <strong>Note:</strong>Every article you put in
"Published" category will always be published! </div>
<div> <input type="checkbox" name="share_all">Publish every feed you have</input></div>
<div> <input type="checkbox" name="share_starred">Publish your starred articles</input> </div>
<!-- TODO: make every category clickable -->
<div>
Remember: whatever you choose to publish, they are all available from http://grog.blah/u/$yourname
</div>
<hr>
<input type="submit" value="Save" />
</form>

23
js/grog.js Normal file
View file

@ -0,0 +1,23 @@
function configShare() {
var query = "grog/share_dialog.html";
var dialog = new dijit.Dialog({
id: "feedConfigShare",
title: __("Share options"),
style: "width: 90%",
show_error: function(msg) {
var elem = $("fadd_error_message");
elem.innerHTML = msg;
if (!Element.visible(elem))
new Effect.Appear(elem);
},
execute: function() {
},
href: query});
dialog.show();
}