[wolfcms] r361 committed - Fixing timing issue with dis- or enabling & uninstalling on slower sys...

2 views
Skip to first unread message

wol...@googlecode.com

unread,
Dec 26, 2010, 4:41:21 PM12/26/10
to wolfcms...@googlegroups.com
Revision: 361
Author: martij...@gmail.com
Date: Sun Dec 26 13:40:51 2010
Log: Fixing timing issue with dis- or enabling & uninstalling on slower
systems. - thanks Craig
http://code.google.com/p/wolfcms/source/detail?r=361

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);
+ });
}
});

Reply all
Reply to author
Forward
0 new messages