mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Removing 3 JS files that are no longer in big use. Thus saving around 50KB.
This commit is contained in:
parent
3a3dcd8924
commit
543384ed84
3 changed files with 4 additions and 7 deletions
|
@ -517,6 +517,7 @@ def add_feature(request):
|
|||
def load_features(request):
|
||||
page = int(request.POST.get('page', 0))
|
||||
features = Feature.objects.all()[page*3:(page+1)*3+1].values()
|
||||
features = [{'description': f['description'], 'date': f['date'].strftime("%b %d, %Y")} for f in features]
|
||||
return features
|
||||
|
||||
@json.json_view
|
||||
|
|
|
@ -531,9 +531,9 @@
|
|||
|
||||
$('#story_taskbar').css({'display': 'block'});
|
||||
|
||||
this.make_feeds_folder(this.$s.$feed_list, folders);
|
||||
this.make_feeds_folder($feed_list, folders);
|
||||
|
||||
if (!$feed_list.children().length) {
|
||||
if (!folders.length) {
|
||||
this.setup_ftux_add_feed_callout();
|
||||
} else {
|
||||
$('.NB-task-manage').removeClass('NB-disabled');
|
||||
|
@ -2424,9 +2424,8 @@
|
|||
for (var f in features) {
|
||||
if (f == 3) break;
|
||||
var feature = features[f];
|
||||
var date = Date.parse(feature.date);
|
||||
var $tr = $.make('tr', { className: 'NB-module-feature' }, [
|
||||
$.make('td', { className: 'NB-module-feature-date' }, date.toString('MMM dd, yyyy')),
|
||||
$.make('td', { className: 'NB-module-feature-date' }, feature.date),
|
||||
$.make('td', { className: 'NB-module-feature-description' }, feature.description)
|
||||
]);
|
||||
$table.append($tr);
|
||||
|
|
|
@ -93,13 +93,10 @@ COMPRESS_JS = {
|
|||
'js/jquery-1.4.2.js',
|
||||
'js/jquery.json.js',
|
||||
'js/jquery.easing.js',
|
||||
'js/jquery.date.js',
|
||||
'js/jquery.newsblur.js',
|
||||
'js/jquery.scrollTo.js',
|
||||
'js/jquery.timers.js',
|
||||
'js/jquery.corners.js',
|
||||
'js/jquery.hotkeys.js',
|
||||
'js/jquery.dropshadow.js',
|
||||
'js/jquery.ajaxupload.js',
|
||||
'js/jquery.ajaxmanager.3.js',
|
||||
'js/jquery.simplemodal-1.3.js',
|
||||
|
|
Loading…
Add table
Reference in a new issue