mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
added a piler daemon reload button to the policy pages. Thx for Jack Zielke for the idea
This commit is contained in:
@ -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]");
|
||||
|
0
webui/view/theme/default/templates/policy/apply.tpl
Normal file
0
webui/view/theme/default/templates/policy/apply.tpl
Normal 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>
|
||||
|
@ -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>
|
||||
|
||||
|
0
webui/view/theme/orig/templates/policy/apply.tpl
Normal file
0
webui/view/theme/orig/templates/policy/apply.tpl
Normal 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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user