Modified:
/trunk/wolf/app/views/setting/index.php
=======================================
--- /trunk/wolf/app/views/setting/index.php Sat Nov 27 06:43:27 2010
+++ /trunk/wolf/app/views/setting/index.php Sun Dec 26 13:40:51 2010
@@ -226,16 +226,18 @@
// Dynamically change enabled state
$('.enabled input').change(function() {
- $.get('<?php echo
get_url('setting'); ?>'+(this.checked ? '/activate_plugin/':'/deactivate_plugin/')+this.value);
- location.reload(true);
+ $.get('<?php echo
get_url('setting'); ?>'+(this.checked ? '/activate_plugin/':'/deactivate_plugin/')+this.value,
function(){
+ location.reload(true);
+ });
});
// Dynamically uninstall
$('.uninstall a').click(function() {
if (confirm('<?php echo __('Are you sure you wish to uninstall
this plugin?'); ?>')) {
var pluginId = this.name.replace('uninstall_', '');
- $.get('<?php echo
get_url('setting/uninstall_plugin/'); ?>'+pluginId);
- location.reload(true);
+ $.get('<?php echo
get_url('setting/uninstall_plugin/'); ?>'+pluginId, function() {
+ location.reload(true);
+ });
}
});