Changeset 6506


Ignore:
Timestamp:
Aug 7, 2014, 8:11:55 AM (8 years ago)
Author:
Nicklas Nordborg
Message:

References #1825: Remember positions of popup windows

Need to store the old positions as JSON strings instead of objects which doesn't work in IE. Gives error message: SCRIPT1717: The interface is unknown.

Location:
branches/3.3-stable/www/include/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-stable/www/include/scripts/main-2.js

    r6504 r6506  
    891891    try
    892892    {
    893       value = win.pageValues[namespace+'::'+key];
     893      value = win.pageValues[namespace+'::'+key] || null;
    894894    }
    895895    catch (e)
     
    12091209    if (App.rememberDialogPositions())
    12101210    {
    1211       position = Data.getPageValue("last-position", name);
     1211      position = JSON.parse(Data.getPageValue("last-position", name));
    12121212    }
    12131213
  • branches/3.3-stable/www/include/scripts/popup.js

    r6504 r6506  
    3838    if (window.top.name && App.rememberDialogPositions())
    3939    {
    40       var pos = App.getWindowPosition(window.top);
     40      var pos = JSON.stringify(App.getWindowPosition(window.top));
    4141      Data.setPageValue("last-position", pos, window.top.name);
    4242    }
Note: See TracChangeset for help on using the changeset viewer.