Modified:
/trunk/wolf/app/models/Plugin.php
/trunk/wolf/app/views/setting/index.php
/trunk/wolf/plugins/file_manager/views/index.php
=======================================
--- /trunk/wolf/app/models/Plugin.php Fri Nov 26 10:37:02 2010
+++ /trunk/wolf/app/models/Plugin.php Sat Nov 27 06:43:27 2010
@@ -315,7 +315,6 @@
$plugin_id = $__CMS_CONN__->quote($plugin_id);
$sql = "DELETE FROM $tablename WHERE plugin_id=$plugin_id";
- echo $sql;
$stmt = $__CMS_CONN__->prepare($sql);
return $stmt->execute();
}
=======================================
--- /trunk/wolf/app/views/setting/index.php Sat Nov 27 04:18:03 2010
+++ /trunk/wolf/app/views/setting/index.php Sat Nov 27 06:43:27 2010
@@ -227,23 +227,15 @@
// Dynamically change enabled state
$('.enabled input').change(function() {
$.get('<?php echo
get_url('setting'); ?>'+(this.checked ? '/activate_plugin/':'/deactivate_plugin/')+this.value);
-
- // Add or remove tab for plugin
- if (this.checked) {
- var label = toLabelCase(this.value).replace(/_/g," ");
- $('#mainTabs ul').append('<li id="'+this.value+'-plugin"
class="plugin"><a href="?/admin/plugin/'+this.value+'">'+label+'</a></li>');
- }
- else {
- $('#mainTabs ul li#'+this.value+'-plugin').remove();
- }
+ 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_', '');
- //alert('TEST-<?php echo
get_url('setting/uninstall_plugin/'); ?>'+pluginId);
$.get('<?php echo
get_url('setting/uninstall_plugin/'); ?>'+pluginId);
+ location.reload(true);
}
});
=======================================
--- /trunk/wolf/plugins/file_manager/views/index.php Mon Nov 22 09:39:41
2010
+++ /trunk/wolf/plugins/file_manager/views/index.php Sat Nov 27 06:43:27
2010
@@ -82,7 +82,7 @@
<input id="chmod_file_mode" maxlength="4" name="file[mode]"
type="text" value="" />
<input id="chmod_file_button" name="commit" type="submit"
value="<?php echo __('Change mode'); ?>" />
</div>
- <p><a class="close-link" href="#"
onclick="Element.hide('chmod-popup'); return false;"><?php echo
__('Close'); ?></a></p>
+ <p><a class="close-link" href="#" onclick="toggle_chmod_popup();
return false;"><?php echo __('Close'); ?></a></p>
</form>
</div>
<div class="popup" id="rename-popup" style="display:none;">
@@ -93,7 +93,7 @@
<input id="rename_file_new_name" maxlength="50"
name="file[new_name]" type="text" value="" />
<input id="rename_file_button" name="commit" type="submit"
value="<?php echo __('Rename'); ?>" />
</div>
- <p><a class="close-link" href="#"
onclick="Element.hide('rename-popup'); return false;"><?php echo
__('Close'); ?></a></p>
+ <p><a class="close-link" href="#" onclick="toggle_rename_popup();
return false;"><?php echo __('Close'); ?></a></p>
</form>
</div>
</div>