added a piler daemon reload button to the policy pages. Thx for Jack Zielke for the idea

This commit is contained in:
SJ
2013-04-17 17:23:20 +02:00
parent 676f479d23
commit b92431b0e1
15 changed files with 98 additions and 3 deletions

View File

@ -774,6 +774,18 @@ var Piler =
},
reload_piler:function()
{
Piler.log("[reload_piler]");
jQuery.ajax('index.php?route=policy/apply', { cache: true })
.done( function(a) {
$('#applyChangesOutput').html(a);
})
.fail(function(a, b) { alert("Problem retrieving XML data:" + b) });
},
assemble_folder_restrictions: function()
{
Piler.log("[assemble_folder_restrictions]");

View File

@ -59,7 +59,7 @@
</div>
</div>
<div class="form-actions">
<input type="submit" class="btn btn-primary" value="<?php print $text_add; ?>" /><input type="reset" class="btn" value="<?php print $text_cancel; ?>" />
<input type="submit" class="btn btn-primary" value="<?php print $text_add; ?>" /> <input type="reset" class="btn" value="<?php print $text_cancel; ?>" />
</div>
</form>
@ -105,3 +105,8 @@
</div>
<?php } ?>
<div>
<p><input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /></p>
<span id="applyChangesOutput"></span>
</div>

View File

@ -110,3 +110,9 @@
<?php } ?>
<div>
<p><input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /></p>
<span id="applyChangesOutput"></span>
</div>

View File

@ -103,3 +103,9 @@
<?php print $text_not_found; ?>
<?php } ?>
<div>
<p><input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /></p>
<span id="applyChangesOutput"></span>
</div>

View File

@ -110,3 +110,10 @@
<?php } ?>
<div>
<p><input type="button" class="btn btn-danger" onclick="Piler.reload_piler();" value="<?php print $text_apply_changes; ?>" /></p>
<span id="applyChangesOutput"></span>
</div>