r80308 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80307‎ | r80308 | r80309 >
Date:19:57, 14 January 2011
Author:husky
Status:ok
Tags:
Comment:
added jquery ui styling
Modified paths:
  • /trunk/tools/wp-photocommons/img/button.png (added) (history)
  • /trunk/tools/wp-photocommons/img/favicon.png (deleted) (history)
  • /trunk/tools/wp-photocommons/inc/class-photocommons.php (modified) (history)
  • /trunk/tools/wp-photocommons/js/admin.js (modified) (history)

Diff [purge]

Index: trunk/tools/wp-photocommons/inc/class-photocommons.php
@@ -2,13 +2,16 @@
33 class Photocommons {
44 // TODO: ugly
55 const PLUGIN_PATH = "/wp-content/plugins/wp-photocommons/";
6 -
 6+
77 function __construct() {
88 if (is_admin()) {
99 wp_enqueue_script('jquery');
1010 wp_enqueue_script('jquery-ui-core');
11 - wp_enqueue_script('jquery-ui-dialog');
12 -
 11+ wp_enqueue_script('jquery-ui-dialog');
 12+
 13+ wp_register_style('jquid_jquery_blog_stylesheet', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/sunny/jquery-ui.css');
 14+ wp_enqueue_style('jquid_jquery_blog_stylesheet');
 15+
1316 wp_register_script('admin', self::PLUGIN_PATH . 'js/admin.js');
1417 wp_enqueue_script('admin');
1518 }
Index: trunk/tools/wp-photocommons/img/favicon.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Index: trunk/tools/wp-photocommons/img/button.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
Property changes on: trunk/tools/wp-photocommons/img/button.png
___________________________________________________________________
Added: svn:mime-type
1619 + image/png
Index: trunk/tools/wp-photocommons/js/admin.js
@@ -3,8 +3,8 @@
44
55 function addButtons() {
66 $("#media-buttons").append(''.concat(
7 - '<a id="photocommons-add" title="Add a free image">',
8 - '<img src="' + PATH + '/img/favicon.png" />',
 7+ '<a id="photocommons-add" title="Add a free image" style="padding-left:4px;">',
 8+ '<img src="' + PATH + '/img/button.png"/>',
99 '</a>'
1010 ));
1111
@@ -12,7 +12,7 @@
1313 e.preventDefault();
1414
1515 $("body").prepend('<div id="photocommons-dialog"></div>');
16 - $("#photocommons-dialog").load(PATH + "/test.php", function(html) {
 16+ $("#photocommons-dialog").load(PATH + "/search.php", function(html) {
1717 var $self = $("#photocommons-dialog");
1818 $self.dialog();
1919 $self.find("button").click(function() {

Status & tagging log