Sponsored Content
The Lounge What is on Your Mind? Small bug in the Quick Editor function in postbit Post 303021122 by Neo on Sunday 5th of August 2018 05:24:47 AM
Old 08-05-2018
Hmm. There is still small bug in the "Quick Editor" and to fast fix it requires a page reload, so I've temporary disabled "Quick Editor" and so the post editor button takes us directly to the 'advanced' editor with the attachments, etc.

If you really love the "Quick Editor" more than the "Advanced Editor" please post back and comment and I'll set a UserCP option for you; but then you will get a "reload" after saving in the "Quick Editor".

The problem is that the javascript in:

Code:
vbulletin_quick_edit.js

Generated an error on this line:

Code:
fetch_object("post" + this.postid).innerHTML = B

PS: I don't want to spend too much time fixing this because I plan to replace all this code with div tags when I get rid of the tables, and hopefully the problem will be solved.

.. saying the object does not exist; but it does exist and is not a duplicate, so I can fix it by changing this to:

Code:
fetch_object("post_message_" + this.postid).innerHTML = B
reload.location();

But this is a poor solution, so I disabled it and opted for the "Advanced Editor" which does not have this pesky error.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Function Bug in script - need help

My script is erroring with: testtapemgr.sh: FTP_RETURNS: not found I cannot see what I am doing wrong..when it calls that function from the Volume returns function and says taht FTP_RETURNS is not found and exits out of the script. What am I not seeing here? #### Return Volume Function ... (4 Replies)
Discussion started by: gzs553
4 Replies

2. Shell Programming and Scripting

bash-function with array acting bizarre, bug?

Hello, basically what this script is supposed to do is showing a list of hosts that is given a number, that you will be able to choose from a list. A check is made to verify that the chosen number is within the array and this is where things go bad and I don't know why, bizarre. I've spent... (5 Replies)
Discussion started by: gand
5 Replies

3. Shell Programming and Scripting

Bug in Function Call

Can anybody tell me where is the bug in this below mentioned function call. #The String Search File myString="${LOCATION}/config/stringFile.txt" # Functional Usage function usage() { if ; then echo "************************************************************" ... (5 Replies)
Discussion started by: baraghun
5 Replies

4. Shell Programming and Scripting

Sort function UNIX bug ???

Hello there i have a funny behiavor of the sort fonction, i try it out on different Solaris machine and i have the same issue. So i would like to see if there is a rationel explanation here is some data in a file:test.txt ,Test,RSD,RSD_Asset ,Test,RSD,RSD_Credit ,Test,RSD,RSD_Liab... (3 Replies)
Discussion started by: kykyboss
3 Replies

5. Programming

Small query regarding function "char * strerror(int errnum)"

As this function returns the address of the string corressponding to the errno value provided to it. Can someone please let me know where, in the memory, it could be (on freeBSD). The MAN page tells under the BUG section that "For unknown error numbers, the strerror() function will return its... (5 Replies)
Discussion started by: Praveen_218
5 Replies

6. Programming

Tweaked getpass() function gives an untraceable bug

I have customized the getpass() as follows: char* my_getpass(const char* str) { struct termios oflags, nflags; static char passwd; /* disabling echo */ tcgetattr(fileno(stdin), &oflags); nflags = oflags; nflags.c_lflag &= ~ECHO; nflags.c_lflag |= ECHONL; ... (3 Replies)
Discussion started by: royalibrahim
3 Replies

7. What is on Your Mind?

A Choice: Draggable Editors or Smilie Box on Quick Editor

Hey, I wrote some new jQuery UI code which makes, for example, the "Quick Reply Editor" draggable and it works very cool. jQuery UI also changes the tooltip mouseovers and they are fine. But, when I add the JS lib do make all this magic happen, it breaks the JS for the Smile Box and the... (5 Replies)
Discussion started by: Neo
5 Replies

8. Web Development

New Font Awesome Icons in Quick Reply Editor

Working on the Quick Reply Editor, I have replaced a number of icons (see image below) with Font Awesome Icons. Was planning to replace all of them, but for some reason, replacing a few of them causes the script / template to break (which is odd) so I left them for now. ... (6 Replies)
Discussion started by: Neo
6 Replies
catcmds(3U)						    InterViews Reference Manual 					       catcmds(3U)

NAME
NewCompCmd, PrintCmd, QuitCmd, RevertCmd, SaveCompCmd, SaveCompAsCmd, ViewCompCmd - catalog-oriented commands SYNOPSIS
#include <Unidraw/Commands/catcmds.h> DESCRIPTION
The Unidraw library predefines a set of non-interpretive commands that let a user specify components to open, view, and save, plus commands for generating a PostScript external representation and for quitting the application. NewCompCmd re-initializes its editor's component to let the user start editing afresh. If the existing component is modified, NewCompCmd prompts the user to save it. PrintCmd generates a PostScriptView of the editor's component and lets the user send it to a file or to a printer. QuitCmd quits the application, prompting the user to save modified components. RevertCmd lets the user re-open the current component, discarding changes since it was last saved. SaveCompAsCmd lets the user save a component under a particular name, while SaveCompCmd saves a component named previously. Finally, View- CompCmd lets the user specify another component to view in its editor. NEWCOMPCMD PUBLIC OPERATIONS
NewCompCmd(ControlInfo*, Component* prototype = nil) NewCompCmd(Editor* = nil, Component* = nil) Create a new NewCompCmd instance, optionally supplying a prototype component. When executed, NewCompCmd will make its editor edit a copy of the prototype. The editor's original component will be deleted if no other editor refers to it. virtual boolean Reversible() NewCompCmd is not reversible. Component* GetPrototype() Return the prototype component specified in the constructor. PRINTCMD PUBLIC OPERATIONS
PrintCmd(ControlInfo*, PrintDialog* = nil) PrintCmd(Editor* = nil, PrintDialog* = nil) Create a new PrintCmd instance, optionally supplying the PrintDialog to display when executed. virtual boolean Reversible() PrintCmd is not reversible. PRINTCMD PROTECTED OPERATIONS
void print(const char* print_cmd, const char* file) Concatenates print_cmd and file and calls system(3) on the result. QUITCMD PUBLIC OPERATIONS
QuitCmd(ControlInfo*) QuitCmd(Editor* = nil) Create a new QuitCmd instance. virtual boolean Reversible() QuitCmd is not reversible. REVERTCMD PUBLIC OPERATIONS
RevertCmd(ControlInfo*) RevertCmd(Editor* = nil) Create a new RevertCmd instance. virtual boolean Reversible() RevertCmd is not reversible. SAVECOMPCMD PUBLIC OPERATIONS
SaveCompCmd(ControlInfo*) SaveCompCmd(Editor* = nil) Create a new SaveCompCmd instance. virtual boolean Reversible() SaveCompCmd is not reversible. SAVECOMPASCMD PUBLIC OPERATIONS
SaveCompAsCmd(ControlInfo*, FileChooser* = nil) SaveCompAsCmd(Editor* = nil, FileChooser* = nil) Create a new SaveCompAsCmd instance, optionally supplying the FileChooser that will prompt the user to name the component. virtual boolean Reversible() SaveCompAsCmd is not reversible. VIEWCOMPCMD PUBLIC OPERATIONS
ViewCompCmd(ControlInfo*, FileChooser* = nil) ViewCompCmd(Editor* = nil, FileChooser* = nil) Create a new ViewCompCmd instance, optionally supplying the FileChooser that will prompt the user to specify the component to view. After the new component is opened successfully, the editor's original component will be deleted if no other editor refers to it. virtual boolean Reversible() ViewCompCmd is not reversible. SEE ALSO
BasicDialog(3U), Command(3U), Component(3U), Editor(3U), PostScriptView(3U), lpr(1). Unidraw 23 January 1991 catcmds(3U)
All times are GMT -4. The time now is 06:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy