diff --git a/app/assets/javascripts/admin.js.erb b/app/assets/javascripts/admin.js.erb index 3c536f4ca..ce47046a2 100644 --- a/app/assets/javascripts/admin.js.erb +++ b/app/assets/javascripts/admin.js.erb @@ -1,12 +1,5 @@ <% -if Rails.env.development? - require_asset ("development/list-view.js") -else - require_asset ("production/list-view.js") -end - require_asset("main_include_admin.js") DiscoursePluginRegistry.admin_javascripts.each { |js| require_asset(js) } - %> diff --git a/app/assets/javascripts/discourse/models/category_list.js b/app/assets/javascripts/discourse/models/category_list.js index c0478499d..ee8b08c15 100644 --- a/app/assets/javascripts/discourse/models/category_list.js +++ b/app/assets/javascripts/discourse/models/category_list.js @@ -8,7 +8,7 @@ **/ Discourse.CategoryList = Ember.ArrayProxy.extend({ init: function() { - this.content = []; + this.set('content', []); this._super(); } }); diff --git a/app/assets/javascripts/discourse/models/post_stream.js b/app/assets/javascripts/discourse/models/post_stream.js index 026b84e3c..583a7939c 100644 --- a/app/assets/javascripts/discourse/models/post_stream.js +++ b/app/assets/javascripts/discourse/models/post_stream.js @@ -527,7 +527,7 @@ Discourse.PostStream = Em.Object.extend({ this.get('stream').removeObjects(postIds); this.get('posts').removeObjects(posts); postIds.forEach(function(id){ - identityMap.remove(id); + identityMap.delete(id); }); }, diff --git a/app/assets/javascripts/discourse/templates/topic.hbs b/app/assets/javascripts/discourse/templates/topic.hbs index 37feb1da4..b53bc01ef 100644 --- a/app/assets/javascripts/discourse/templates/topic.hbs +++ b/app/assets/javascripts/discourse/templates/topic.hbs @@ -73,7 +73,7 @@ {{loading-spinner condition=postStream.loadingAbove}} {{#unless postStream.loadingFilter}} - {{cloaked-collection cloakView="post" + {{cloaked-collection itemViewClass="post" idProperty="post_number" defaultHeight="200" content=postStream.posts diff --git a/app/assets/javascripts/discourse/views/combo-box.js.es6 b/app/assets/javascripts/discourse/views/combo-box.js.es6 index 993bec951..fe2381243 100644 --- a/app/assets/javascripts/discourse/views/combo-box.js.es6 +++ b/app/assets/javascripts/discourse/views/combo-box.js.es6 @@ -7,7 +7,7 @@ @module Discourse **/ export default Discourse.View.extend({ - tagName: 'select', + tagName: 'span', attributeBindings: ['tabindex'], classNames: ['combobox'], valueAttribute: 'id', @@ -27,6 +27,7 @@ export default Discourse.View.extend({ none = this.get('none'); // Add none option if required + buffer.push(''); }, valueChanged: function() { - var $combo = this.$(), + var $combo = this.$('select'), val = this.get('value'); if (val !== undefined && val !== null) { $combo.val(val.toString()); @@ -64,7 +66,7 @@ export default Discourse.View.extend({ }.observes('content.@each'), didInsertElement: function() { - var $elem = this.$(), + var $elem = this.$('select'), self = this; $elem.select2({formatResult: this.template, minimumResultsForSearch: 5, width: 'resolve'}); diff --git a/app/assets/javascripts/discourse/views/reply-history.js.es6 b/app/assets/javascripts/discourse/views/reply-history.js.es6 index c5f81fa47..e1f2cb45b 100644 --- a/app/assets/javascripts/discourse/views/reply-history.js.es6 +++ b/app/assets/javascripts/discourse/views/reply-history.js.es6 @@ -1,10 +1,3 @@ -/** - Lists previous posts in the history of a post. - - @class ReplyHistory - @namespace Discourse - @module Discourse -**/ export default Em.CollectionView.extend({ tagName: 'section', classNameBindings: [':embedded-posts', ':top', ':topic-body', ':offset2', 'hidden'], @@ -12,5 +5,3 @@ export default Em.CollectionView.extend({ hidden: Em.computed.equal('content.length', 0), previousPost: true }); - - diff --git a/app/assets/javascripts/main_include_admin.js b/app/assets/javascripts/main_include_admin.js index d83be37c1..2cd37f159 100644 --- a/app/assets/javascripts/main_include_admin.js +++ b/app/assets/javascripts/main_include_admin.js @@ -1,3 +1,4 @@ +//= require list-view //= require admin/models/user-field //= require admin/controllers/admin-email-skipped //= require admin/controllers/change-site-customization-details diff --git a/app/assets/stylesheets/common/foundation/base.scss b/app/assets/stylesheets/common/foundation/base.scss index 656248df6..1eec1d65d 100644 --- a/app/assets/stylesheets/common/foundation/base.scss +++ b/app/assets/stylesheets/common/foundation/base.scss @@ -92,3 +92,6 @@ pre code { .row:after {clear: both;} +#offscreen-content { + display: none; +} diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 931637e82..111e92e81 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -61,6 +61,9 @@
+
+
+ <% unless current_user %>