This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
developers:changes_to_note:start [2014/02/27 16:49] jonyo [JS function geoUtil.autoSubmitForm() moved 7.4] |
developers:changes_to_note:start [2014/09/25 16:55] (current) |
||
|---|---|---|---|
| Line 449: | Line 449: | ||
| <code html> | <code html> | ||
| <div class=' | <div class=' | ||
| - | <a class=' | + | <a class=' |
| </ | </ | ||
| *}</ | *}</ | ||
| Line 456: | Line 456: | ||
| <code html> | <code html> | ||
| <div class=' | <div class=' | ||
| - | <a class=' | + | <a class=' |
| </ | </ | ||
| Line 856: | Line 856: | ||
| ==== JS geoUtil.instrBtns removed 7.4 ==== | ==== JS geoUtil.instrBtns removed 7.4 ==== | ||
| - | As part of bug 1212: The " | + | As part of bug 1212: The " |
| + | |||
| + | ==== JS geoTabs Replaced 7.4 ==== | ||
| + | |||
| + | The old geoTabs has been replaced by a in-house jQuery plugin, gjTabs. | ||
| + | |||
| + | What you need to note, if you have any custom " | ||
| + | |||
| + | **Old Way:** | ||
| + | <code js> | ||
| + | //function to run when the tab with id of tabId is activated | ||
| + | };</ | ||
| + | |||
| + | **New Way:** | ||
| + | <code js> | ||
| + | //function to run when the tab with id of tabId is activated | ||
| + | });</ | ||
| + | |||
| + | **Hint:** If want to make it backwards / forwards compatible((This is NOT recommended for new development as it can get hairy, since new version only jQuery will be available)), | ||
| + | <code js>var myCallback = function () { | ||
| + | //function to run when the tab with id of tabId is activated | ||
| + | }; | ||
| + | if (typeof geoTabs !== ' | ||
| + | //use old way | ||
| + | geoTabs.tabCallbacks.tabId = myCallback; | ||
| + | } else { | ||
| + | //new way | ||
| + | jQuery('# | ||
| + | }</ | ||