Plugin Directory

Changeset 1229730


Ignore:
Timestamp:
08/25/2015 12:01:50 AM (11 years ago)
Author:
RylanH
Message:

Open in new tab when publishing

Location:
storyform/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • storyform/trunk/editor/editor.js

    r1226592 r1229730  
    27402740WindowMessageManager.addEventListener("redirect", function (ev) {
    27412741    var data = ev.detail.data;
    2742     document.location.href = data.url;
     2742    if (data.newTab) {
     2743        window.open(data.url, "_blank");
     2744    } else {
     2745        document.location.href = data.url;
     2746    }
    27432747});
    27442748
  • storyform/trunk/src/js/editor.js

    r1226592 r1229730  
    102102WindowMessageManager.addEventListener('redirect', function(ev){
    103103    var data = ev.detail.data;
    104     document.location.href = data.url;
     104    if(data.newTab){
     105        window.open(data.url, '_blank');
     106    } else {
     107        document.location.href = data.url; 
     108    }
     109   
    105110});
    106111
Note: See TracChangeset for help on using the changeset viewer.