Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-15-2013, 09:54 PM   PM User | #1
lukinhasb
New to the CF scene

 
Join Date: Feb 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
lukinhasb is an unknown quantity at this point
Insert URL into jQuery return <button>

See image for details:



Code:
base.prototype.pre_edit_button = function() {
      var _this = this;
      return jQuery('<button>', {
        'class': 'fee-hover-edit',
        'html': FrontEndEditor.data.edit_text,
        'click': function(ev) {
          _this.last_mouse_pos = ev.pageY;
          return _this.start_editing();
        }
      });
Url to be redirected (back-end page edit): wp-admin/edit.php?post_type=page

My lame try:

Code:
    }, base.prototype.edit_button = function () {
        var _this = this;
        return jQuery("<?php edit_post_link( __( 'Full Edit',) ?> ", {
        })
I know nothing of PHP/jQuery/Javascript, it didn't show up anything, but at least script kept running

Notes:

edit_post_link is a wordpress function that redirects to the full-editing of the current page. I won't use it, I'll just try to redirect to that url mentioned above.
lukinhasb is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:02 AM.


Advertisement
Log in to turn off these ads.