issue 160, add waiting message when install/uninstall, fix invalid encoding

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9295 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-23 04:12:39 +00:00
parent 1b261db0c8
commit 7c496eb936
4 changed files with 21 additions and 4 deletions

View file

@ -1,4 +1,5 @@
<include target="header.html" />
<load target="js/waiting.js" usecdn="true" />
<h2 class="h2">{$package->title} ver. {$package->version}</h2>
<p cond="$package->installed">{$lang->current_version}: {$package->cur_version} <block cond="$package->need_update">({$lang->require_update})</block></p>

View file

@ -0,0 +1,15 @@
(function($){
var WaitingStub = xe.createPlugin('waiting_stub', {
API_BEFORE_VALIDATE : function(sender, params) {
$('.wfsr').html(waiting_message).show();
},
API_BEFORE_SHOW_ALERT : function(sender, params) {
$('.wfsr').hide();
}
});
var Validator = xe.getApp('validator')[0];
if(Validator){
Validator.registerPlugin(new WaitingStub);
}
})(jQuery);

View file

@ -24,9 +24,9 @@
<!--@end-->
Sort by
<a href="{getUrl('order_target','newest','order_type',$_newest_order_type)}">{$lang->order_newest}<!--@if($order_target == 'newest')--><!--@if($_newest_order_type == 'asc')-->¡å<!--@else-->¡ã<!--@end--><!--@end--></a> |
<a href="{getUrl('order_target','download','order_type',$_download_order_type)}">{$lang->order_download}<!--@if($order_target == 'download')--><!--@if($_download_order_type == 'asc')-->¡å<!--@else-->¡ã<!--@end--><!--@end--></a> |
<a href="{getUrl('order_target','popular','order_type',$_popular_order_type)}">{$lang->order_popular}<!--@if($order_target == 'popular')--><!--@if($_popular_order_type == 'asc')-->¡å<!--@else-->¡ã<!--@end--><!--@end--></a>
<a href="{getUrl('order_target','newest','order_type',$_newest_order_type)}">{$lang->order_newest}<!--@if($order_target == 'newest')--><!--@if($_newest_order_type == 'asc')--><!--@else--><!--@end--><!--@end--></a> |
<a href="{getUrl('order_target','download','order_type',$_download_order_type)}">{$lang->order_download}<!--@if($order_target == 'download')--><!--@if($_download_order_type == 'asc')--><!--@else--><!--@end--><!--@end--></a> |
<a href="{getUrl('order_target','popular','order_type',$_popular_order_type)}">{$lang->order_popular}<!--@if($order_target == 'popular')--><!--@if($_popular_order_type == 'asc')--><!--@else--><!--@end--><!--@end--></a>
</span>
</caption>
<thead>

View file

@ -1,4 +1,5 @@
<include target="header.html" />
<load target="js/waiting.js" usecdn="true" />
<h2 class="h2">{$package->title}</h2>
<p>{$package->type} ({$package->path})</p>