Index: lams_central/web/includes/javascript/openUrls.js =================================================================== diff -u -rdda4ba88f5e0bd4d7e59f1e3b31914fd6a563208 -re456cbdff56a950306015c2e58a9c0460cba7888 --- lams_central/web/includes/javascript/openUrls.js (.../openUrls.js) (revision dda4ba88f5e0bd4d7e59f1e3b31914fd6a563208) +++ lams_central/web/includes/javascript/openUrls.js (.../openUrls.js) (revision e456cbdff56a950306015c2e58a9c0460cba7888) @@ -50,27 +50,26 @@ } } } - - function openAuthor() - { - + + function openAuthor(learningDesignId){ + var learningDesignParam = learningDesignId==null ? "":"&learningDesignID="+learningDesignId; if(isMac) - { - authorWin = window.open('home.do?method=author','aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); - } - else - { - if(authorWin && !authorWin.closed) { - //authorWin.location = 'home.do?method=author'; - authorWin.focus(); + authorWin = window.open('home.do?method=author'+learningDesignParam,'aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); } - else + else { - authorWin = window.open('home.do?method=author','aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); - authorWin.focus(); + if(authorWin && !authorWin.closed) + { + //authorWin.location = 'home.do?method=author'; + authorWin.focus(); + } + else + { + authorWin = window.open('home.do?method=author'+learningDesignParam,'aWindow','width=' + authoring_width + ',height=' + authoring_height + ',resizable'); + authorWin.focus(); + } } - } } function openAuthorForEditOnFly( learningDesignID )