Rev 1397 | Rev 1404 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1397 | Rev 1400 | ||
---|---|---|---|
Line 1047... | Line 1047... | ||
1047 | $rand = ++self::$crudCounter; |
1047 | $rand = ++self::$crudCounter; |
1048 | $desc = '<noscript><p><font color="red">'._L('You need to enable JavaScript to edit title or description of this object.').'</font></p>'.$desc.'</noscript>'; |
1048 | $desc = '<noscript><p><font color="red">'._L('You need to enable JavaScript to edit title or description of this object.').'</font></p>'.$desc.'</noscript>'; |
1049 | $desc .= '<div class="container box" style="display:none" id="descbox_'.$rand.'">'; |
1049 | $desc .= '<div class="container box" style="display:none" id="descbox_'.$rand.'">'; |
1050 | $desc .= _L('Title').': <input type="text" name="title" id="titleedit" value="'.htmlentities($title).'"><br><br>'._L('Description').':<br>'; |
1050 | $desc .= _L('Title').': <input type="text" name="title" id="titleedit" value="'.htmlentities($title).'"><br><br>'._L('Description').':<br>'; |
1051 | $desc .= self::showMCE('description', $description); |
1051 | $desc .= self::showMCE('description', $description); |
1052 | $desc .= '<button type="button" name="update_desc" id="update_desc" class="btn btn-success btn-xs update" onclick="OIDplusPagePublicObjects.updateDesc()">'._L('Update description').'</button>'; |
1052 | $desc .= '<button type="button" name="update_desc" id="update_desc" class="btn btn-success btn-xs update" onclick="OIDplusPagePublicObjects.updateDesc('.js_escape($obj->nodeId()).')">'._L('Update description').'</button>'; |
1053 | $desc .= '</div>'; |
1053 | $desc .= '</div>'; |
1054 | $desc .= '<script>$("#descbox_'.$rand.'")[0].style.display = "block";</script>'; |
1054 | $desc .= '<script>$("#descbox_'.$rand.'")[0].style.display = "block";</script>'; |
1055 | } |
1055 | } |
1056 | } else { |
1056 | } else { |
1057 | $desc = ''; |
1057 | $desc = ''; |