diff --git a/admin/assignments.php b/admin/assignments.php
index b76a930..3ca5228 100644
--- a/admin/assignments.php
+++ b/admin/assignments.php
@@ -116,7 +116,7 @@ class admin_plugin_struct_assignments extends DokuWiki_Admin_Plugin {
echo '
';
echo '' . hsc($assignee) . ' | ';
echo '' . hsc($schema) . ' | ';
- echo ''.$this->getLang('assign_del').' | ';
+ echo ''.$this->getLang('assign_del').' | ';
echo '
';
}
diff --git a/script.js b/script.js
index e278154..c31b48b 100644
--- a/script.js
+++ b/script.js
@@ -194,4 +194,13 @@ jQuery(function () {
});
});
+ jQuery('a.deleteSchema').click(function (event) {
+ var schema = jQuery(this).closest('tr').find('td:nth-child(2)').text();
+ var page = jQuery(this).closest('tr').find('td:nth-child(1)').text();
+ if(!window.confirm('Do you really want to delete the assignment of schema "' + schema + '" to page/namespace "' + page + '"?')) {
+ event.preventDefault();
+ event.stopPropagation();
+ };
+ })
+
});