https://bugzilla.wikimedia.org/show_bug.cgi?id=42198

--- Comment #2 from [email protected] ---
I have the same problem (Button "Cancel" does saves edited wikitext and Button
"Publish" does nothing) with Mediawiki 1.20.2 and WikiEditor 0.3.1.

While waiting for a fix, I modified the modules/jquery.wikiEditor.publish.js
file :

// an empty function do the publish action
context.fn.addButton( {
    'captionMsg': 'wikieditor-publish-button-publish',
    'action': function () {
        // $( '#' + dialogID ).dialog( 'open' );
        // return false;
    }
} );

// simulate a click on the Cancel link
context.fn.addButton( {
    'captionMsg': 'wikieditor-publish-button-cancel',
    'action': function () {
        $('#mw-editform-cancel')[0].click();
        return false;
    }
} );

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to