Browse Source

Revert "[WIP] Per-notice markdown setting"

Remove unfinished feature from master branch

This reverts commit e8c34e3fc0.
master
Chimo 1 year ago
parent
commit
99b512ef0d
5 changed files with 1 additions and 39 deletions
  1. 1
    9
      MarkdownPlugin.php
  2. 0
    21
      css/markdown.css
  3. BIN
      images/markdown-disabled.png
  4. BIN
      images/markdown-enabled.png
  5. 0
    9
      js/gs-markdown.js

+ 1
- 9
MarkdownPlugin.php View File

@@ -6,7 +6,7 @@ if (!defined('GNUSOCIAL')) {
6 6
 
7 7
 class MarkdownPlugin extends Plugin
8 8
 {
9
-    const VERSION = '0.0.10';
9
+    const VERSION = '0.0.9';
10 10
     const NAME_SPACE = 'markdown'; // 'namespace' is a reserved keyword
11 11
 
12 12
     function initialize()
@@ -173,14 +173,6 @@ class MarkdownPlugin extends Plugin
173 173
         return true;
174 174
     }
175 175
 
176
-    function onEndShowNoticeFormData($action)
177
-    {
178
-        $action->elementStart('div', array('class' => 'notice_data-markdown_wrap'));
179
-        $action->element('input', array('class' => 'checkbox', 'id' => 'markdown', 'type' => 'checkbox'));
180
-        $action->element('label', array('class' => 'notice_data-markdown', 'for' => 'markdown'), 'Parse this notice as markdown');
181
-        $action->elementEnd('div');
182
-    }
183
-
184 176
     function onEndShowStyles($action)
185 177
     {
186 178
         $action->cssLink($this->path('css/markdown.css'));

+ 0
- 21
css/markdown.css View File

@@ -1,24 +1,3 @@
1 1
 #notices_primary .e-content h2 {
2 2
     display: block;
3 3
 }
4
-
5
-.notice_data-markdown {
6
-    background: url("../images/markdown-disabled.png") no-repeat top left;
7
-    cursor: pointer;
8
-    display: block;
9
-    height: 16px;
10
-    position: absolute;
11
-    right: 0;
12
-    text-indent: -9999px;
13
-    top: 52px;
14
-    width: 16px;
15
-    z-index: 99;
16
-}
17
-
18
-.notice_data-markdown_wrap input {
19
-    visibility: hidden;
20
-}
21
-
22
-.notice_data-markdown_wrap .checkbox:checked + .notice_data-markdown {
23
-    background: url("../images/markdown-enabled.png") no-repeat top left;
24
-}

BIN
images/markdown-disabled.png View File


BIN
images/markdown-enabled.png View File


+ 0
- 9
js/gs-markdown.js View File

@@ -1,9 +0,0 @@
1
-( function() {
2
-	/*
3
-	 * TODO:
4
-	 *  Check the state of the checkbox (checked = markdown-enabled)
5
-	 *  Save the opposite setting
6
-	 *  Change the state of the button
7
-	 */
8
-}() );
9
-

Loading…
Cancel
Save