Skip to content

Commit 5e597e5

Browse files
author
Mark Vincent
authored
Merge pull request #17 from WildcardSearch/maintenance
2.0.2 Release
2 parents 0d58448 + 5479ea1 commit 5e597e5

5 files changed

Lines changed: 23 additions & 15 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## YourCode 2.0.1
1+
## YourCode 2.0.2
22
for MyBB 1.8.x
33

44
*Forget MyCode. Take control of YourCode-- a much better way of handling BB Code for MyBB forums*
@@ -13,7 +13,7 @@ At uninstall everything goes back to normal. No trash left behind and no effects
1313

1414
* YourCode is nestable.
1515
* YourCode can use a wider range of regex options including case sensitivity, single line, multi-line and eval() modes.
16-
* YourCode can Import/Export to XML files to share, backup or restore your work-- one at a time or en mass.
16+
* YourCode can Import/Export to XML files to share, backup or restore your work-- one at a time or en masse.
1717
* YourCode uses MyBB's internal parser to handle the actual regex replacements so its footprint is minimal.
1818
* YourCode can have individual group permission for use and viewing separately.
1919
* YourCode has alternate replacements for those who do not have permission to view them.

Upload/admin/jscripts/yourcode/yourcode_inline.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var YourCode = (function(yc) {
2929

3030
/**
3131
* initiate the selected count and observe inputs
32-
*
32+
*
3333
* @return void
3434
*/
3535
function init() {
@@ -42,7 +42,7 @@ var YourCode = (function(yc) {
4242

4343
/**
4444
* allow custom language overrides
45-
*
45+
*
4646
* @param object the custom language
4747
* @return void
4848
*/
@@ -52,7 +52,7 @@ var YourCode = (function(yc) {
5252

5353
/**
5454
* squeal if admin is submitting inline with nothing checked
55-
*
55+
*
5656
* @param object the event
5757
* @return void
5858
*/
@@ -65,7 +65,7 @@ var YourCode = (function(yc) {
6565

6666
/**
6767
* sync all check boxes on this page with the master
68-
*
68+
*
6969
* @param object the event
7070
* @return void
7171
*/
@@ -80,7 +80,7 @@ var YourCode = (function(yc) {
8080

8181
/**
8282
* set all check boxes on this page on/off
83-
*
83+
*
8484
* @param bool true for checked, false for unchecked
8585
* @return void
8686
*/
@@ -101,12 +101,12 @@ var YourCode = (function(yc) {
101101

102102
/**
103103
* adjust checked count on-the-fly
104-
*
104+
*
105105
* @param object the event
106106
* @return void
107107
*/
108108
function keepCount(e) {
109-
if(this.prop("checked")) {
109+
if(this.checked) {
110110
++checkCount;
111111
} else {
112112
--checkCount;
@@ -116,7 +116,7 @@ var YourCode = (function(yc) {
116116

117117
/**
118118
* update the go button text to reflect the currently checked count
119-
*
119+
*
120120
* @return void
121121
*/
122122
function updateCheckCount() {
@@ -125,7 +125,7 @@ var YourCode = (function(yc) {
125125

126126
/**
127127
* clear all check boxes when the clear button is clicked
128-
*
128+
*
129129
* @param object the event
130130
* @return void
131131
*/
@@ -135,7 +135,7 @@ var YourCode = (function(yc) {
135135

136136
/**
137137
* count the initially checked boxes
138-
*
138+
*
139139
* @return void
140140
*/
141141
function initialCount() {

Upload/inc/languages/english/admin/yourcode.lang.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// general
1818
$l['yourcode_yes'] = 'Yes';
1919
$l['yourcode_no'] = 'No';
20+
$l['yourcode_cancel'] = 'Cancel';
2021

2122
// columns and labels
2223
$l['yourcode_activate'] = 'Activate';

Upload/inc/plugins/yourcode/acp.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,11 @@ function yourcode_admin_import()
10371037

10381038
if($mybb->request_method == 'post')
10391039
{
1040+
if($mybb->input['import'] == $lang->yourcode_cancel)
1041+
{
1042+
admin_redirect($html->url(array("action" => 'tools')));
1043+
}
1044+
10401045
if($mybb->input['mode'] == 'finish')
10411046
{
10421047
if(is_array($mybb->input['export_ids']) && !empty($mybb->input['export_ids']))
@@ -1100,7 +1105,7 @@ function yourcode_admin_import()
11001105
$onsubmit = <<<EOF
11011106
var all_checks = $('input.checkbox_input'); for(x = 0; x < all_checks.length; x++) { if(all_checks[x].checked) { return true; } } alert('{$lang->yourcode_import_selection_error}'); return false;
11021107
EOF;
1103-
$form = new Form($html->url(array("action" => 'import', "mode" => 'finish')), 'post', '', '', '', '', $onsubmit);
1108+
$form = new Form($html->url(array("action" => 'import', "mode" => 'finish')), 'post');
11041109
$form_container = new FormContainer($lang->yourcode_import);
11051110

11061111
$percentage = 45;
@@ -1158,7 +1163,9 @@ function yourcode_admin_import()
11581163
$form_container->output_cell('&nbsp;');
11591164
$form_container->construct_row();
11601165
$form_container->end();
1161-
$buttons = array($form->generate_submit_button($lang->yourcode_import, array('name' => 'import')));
1166+
$buttons = array();
1167+
$buttons[] = $form->generate_submit_button($lang->yourcode_import, array("onclick" => $onsubmit, "name" => 'import'));
1168+
$buttons[] = $form->generate_submit_button($lang->yourcode_cancel, array("name" => 'import'));
11621169
$form->output_submit_wrapper($buttons);
11631170
$form->end();
11641171
}

Upload/inc/plugins/yourcode/install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function yourcode_info()
6969
"website" => 'https://github.com/WildcardSearch/YourCode',
7070
"author" => $author,
7171
"authorsite" => 'http://www.rantcentralforums.com',
72-
"version" => '2.0.1',
72+
"version" => '2.0.2',
7373
"compatibility" => '18*',
7474
"guid" => '36a18ebc285a181a42561141adfd1d7f',
7575
);

0 commit comments

Comments
 (0)