Commits

Artem Gluvchynsky committed 814eec3

Reduced filebrowser popup size, removed dialog padding, fixed delete table header

  • Participants
  • Parent commits adce54d

Comments (0)

Files changed (2)

filebrowser_safe/static/filebrowser/js/filebrowser-popup.js

 	gallery: null,
 
 	init: function() {
-		this.iframe = $('<iframe frameborder="0" marginwidth="0" marginheight="0" width="920" height="600" allowfullscreen></iframe>');
+		this.iframe = $('<iframe frameborder="0" marginwidth="0" marginheight="0" width="900" height="500" allowfullscreen></iframe>');
 		this.gallery = $('<div></div>').append(this.iframe).appendTo('body')
 			.dialog({
 				autoOpen: false,
 				title: 'Media Library',
-				width: 920,
-				dialogClass: 'media-library'
+				width: 900,
+				dialogClass: 'media-library',
+				resizable: false,
+				create: function(event, ui) {
+					$(this).css('padding', 0);
+				}
 			});
 	},
 
 var browseMediaLibrary = mediaLibrary.open;
 
 $(function() {
-   mediaLibrary.init();
+	mediaLibrary.init();
 });

filebrowser_safe/templates/filebrowser/include/tableheader.html

     {% ifequal query.o 'date' %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot,p" %}&amp;ot={% ifequal query.ot 'desc' %}asc{% else %}desc{% endifequal %}&amp;o=date">{% trans 'Date' %}</a></th>{% endifequal %}
     {% ifnotequal query.o 'date' %}<th><a href="{% query_string "" "o,ot,p" %}&amp;ot=asc&amp;o=date">{% trans 'Date' %}</a></th>{% endifnotequal %}
     <!-- DELETE -->
-    {% if query.pop != '4' %}
     <th>&nbsp;</th>
-    {% endif %}
     {% if settings_var.DEBUG %}<th>Debug</th>{% endif %}
     </tr>
 </thead>