Skip to content

Commit

Permalink
Fix issue in admin date picker #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa Soufi committed Jun 12, 2017
1 parent 748c264 commit dd25c77
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions assets/css/editor-font.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@import url('admin-fonts.css');

body {
font-family: 'DroidNaskh', 'Roboto', tahoma, sans-serif !important;
font-size: 15px !important;
}
2 changes: 1 addition & 1 deletion assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jQuery(document).ready(function () {
var div = '<div class="timestamp-wrap persian">' +
'<select id="mma" name="mma">';
for (var i = 1; i < 13; i++) {
if (i === mon)
if (i === parseInt(mon))
div += '<option value="' + i + '" selected="selected">' + persian_month_names[i] + '</option>';
else
div += '<option value="' + i + '">' + persian_month_names[i] + '</option>';
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/styles-fix.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function wpp_fix_tinymce_font()

add_editor_style(WP_PARSI_URL . 'assets/css/editor.css');
if (isset($wpp_settings['droidsans_editor']) && $wpp_settings['droidsans_editor'] != 'disable') {
add_editor_style(WP_PARSI_URL . 'assets/css/editor-font-rtl.css');
add_editor_style(WP_PARSI_URL . 'assets/css/editor-font.css');
}
}

Expand Down
6 changes: 4 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: lord_viper, man4toman, iEhsan.ir, parselearn
Donate link: http://forum.wp-parsi.com/
Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, Iran, Iranian, parsidate, rtl
Requires at least: 3.6
Tested up to: 4.7
Stable tag: trunk
Tested up to: 4.8
Stable tag: 2.3.1

Persian date support for WordPress

Expand Down Expand Up @@ -41,6 +41,8 @@ List of some features:
4. 'Jalali Date Calender' in action

== Changelog ==
= 2.3.1 =
* Fix date picker's month dropdown bug in admin edit post. [#issue](https://github.com/wordpress-parsi/wp-parsidate/issues/5)

= 2.3.0.2 =
* Fix set editor font css
Expand Down
2 changes: 1 addition & 1 deletion wp-parsidate.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: WP-Parsidate
* Version: 2.3.0.2
* Version: 2.3.1
* Plugin URI: http://forum.wp-parsi.com/
* Description: Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.
* Author: WP-Parsi Team
Expand Down

0 comments on commit dd25c77

Please sign in to comment.