mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 09:43:54 -04:00
Get rid of the form from server_add, we're not using it.
Turn the cancel link into a themed close button which triggers a page reload. Add some padding to the left of the tree.
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<?= form::open(url::abs_site("server_add/start/$item->id"), array("method" => "post")) ?>
|
||||
<?= access::csrf_form_field(); ?>
|
||||
<ul id="gServerAddTree" class="gCheckboxTree">
|
||||
<?= $tree ?>
|
||||
</ul>
|
||||
@@ -31,10 +29,16 @@
|
||||
</div>
|
||||
|
||||
<span>
|
||||
<input id="gServerAddAddButton" class="submit ui-state-disabled" disabled="disabled"
|
||||
type="submit" value="<?= t("Add") ?>">
|
||||
<button id="gServerAddAddButton" class="ui-state-default ui-state-disabled ui-corner-all"
|
||||
disabled="disabled">
|
||||
<?= t("Add") ?>
|
||||
</button>
|
||||
|
||||
<button class="ui-state-default ui-corner-all" onclick="closeDialog(); window.location.reload();">
|
||||
<?= t("Close") ?>
|
||||
</button>
|
||||
</span>
|
||||
<?= form::close() ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#gServerAddAddButton").ready(function() {
|
||||
$("#gServerAddAddButton").click(function(event) {
|
||||
@@ -47,7 +51,4 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<button class="ui-state-default ui-corner-all" onclick="closeDialog(); window.location.reload();">
|
||||
<?= t("Close") ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user