2009-11-21 04:16:05 +01:00
|
|
|
/**
|
|
|
|
* @type jquery.layout Global variable so layout state management
|
|
|
|
* can pick it up.
|
|
|
|
*/
|
|
|
|
var ss_MainLayout;
|
|
|
|
|
2009-11-21 03:36:00 +01:00
|
|
|
(function($) {
|
2009-11-21 04:19:59 +01:00
|
|
|
$.concrete('ss', function($){
|
2009-11-21 04:15:25 +01:00
|
|
|
|
2009-11-21 04:19:59 +01:00
|
|
|
// setup jquery.concrete
|
|
|
|
$.concrete.warningLevel = $.concrete.WARN_LEVEL_BESTPRACTISE;
|
2009-11-21 04:20:14 +01:00
|
|
|
|
|
|
|
// global ajax error handlers
|
|
|
|
$.ajaxSetup({
|
|
|
|
error: function(xmlhttp, status, error) {
|
|
|
|
var msg = (xmlhttp.getResponseHeader('X-Status')) ? xmlhttp.getResponseHeader('X-Status') : xmlhttp.statusText;
|
|
|
|
statusMessage(msg, 'bad');
|
|
|
|
}
|
|
|
|
});
|
2009-11-21 04:19:59 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Available Custom Events:
|
|
|
|
* <ul>
|
|
|
|
* <li>ajaxsubmit</li>
|
|
|
|
* <li>validate</li>
|
|
|
|
* <li>loadnewpage</li>
|
|
|
|
*
|
|
|
|
* @class Main LeftAndMain interface with some control
|
|
|
|
* panel and an edit form.
|
|
|
|
* @name ss.LeftAndMain
|
|
|
|
*/
|
|
|
|
$('.LeftAndMain').concrete(/** @lends ss.EditMemberProfile */{
|
2009-11-21 04:15:02 +01:00
|
|
|
/**
|
|
|
|
* Reference to jQuery.layout element
|
|
|
|
* @type Object
|
|
|
|
*/
|
|
|
|
MainLayout: null,
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
/**
|
|
|
|
* @type Number Interval in which /Security/ping will be checked for a valid login session.
|
|
|
|
*/
|
|
|
|
PingIntervalSeconds: 5*60,
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
onmatch: function() {
|
|
|
|
var self = this;
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:14:49 +01:00
|
|
|
// Remove loading screen
|
2009-11-21 04:14:53 +01:00
|
|
|
$('.ss-loading-screen').hide();
|
2009-11-21 04:15:06 +01:00
|
|
|
$('body').removeClass('stillLoading');
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:15:02 +01:00
|
|
|
// Layout
|
|
|
|
ss_MainLayout = this._setupLayout();
|
|
|
|
this.setMainLayout(ss_MainLayout);
|
|
|
|
layoutState.options.keys = "west.size,west.isClosed";
|
|
|
|
$(window).unload(function(){ layoutState.save('ss_MainLayout');});
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
this._setupPinging();
|
|
|
|
this._resizeChildren();
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:17:52 +01:00
|
|
|
// HACK Delay resizing to give jquery-ui tabs a change their dimensions
|
|
|
|
// through dynamically added css classes
|
2009-11-21 03:38:31 +01:00
|
|
|
$(window).resize(function () {
|
|
|
|
var timerID = "timerLeftAndMainResize";
|
|
|
|
if (window[timerID]) clearTimeout(window[timerID]);
|
2009-11-21 04:17:52 +01:00
|
|
|
window[timerID] = setTimeout(function() {
|
|
|
|
self._resizeChildren();
|
|
|
|
}, 200);
|
2009-11-21 03:38:31 +01:00
|
|
|
});
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:15:02 +01:00
|
|
|
// If tab has no nested tabs, set overflow to auto
|
|
|
|
$(this).find('.tab').not(':has(.tab)').css('overflow', 'auto');
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:16:59 +01:00
|
|
|
// @todo Doesn't resize properly if the response doesn't contain a tabset (see above)
|
2009-11-21 04:17:52 +01:00
|
|
|
$('#Form_EditForm').bind('loadnewpage', function() {
|
|
|
|
// HACK Delay resizing to give jquery-ui tabs a change their dimensions
|
|
|
|
// through dynamically added css classes
|
|
|
|
var timerID = "timerLeftAndMainResize";
|
|
|
|
if (window[timerID]) clearTimeout(window[timerID]);
|
|
|
|
window[timerID] = setTimeout(function() {
|
|
|
|
self._resizeChildren();
|
|
|
|
}, 200);
|
|
|
|
});
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
this._super();
|
|
|
|
},
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:15:02 +01:00
|
|
|
/**
|
|
|
|
* Initialize jQuery layout manager with the following panes:
|
|
|
|
* - east: Tree, Page Version History, Site Reports
|
|
|
|
* - center: Form
|
|
|
|
* - west: "Insert Image", "Insert Link", "Insert Flash" panes
|
|
|
|
* - north: CMS area menu bar
|
|
|
|
* - south: "Page view", "profile" and "logout" links
|
|
|
|
*/
|
|
|
|
_setupLayout: function() {
|
|
|
|
var self = this;
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:17:38 +01:00
|
|
|
var widthEast = this.find('.ui-layout-east').width();
|
|
|
|
var widthWest = this.find('.ui-layout-west').width();
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:15:02 +01:00
|
|
|
// layout containing the tree, CMS menu, the main form etc.
|
|
|
|
var savedLayoutSettings = layoutState.load('ss_MainLayout');
|
2009-11-21 04:17:38 +01:00
|
|
|
|
2009-11-21 04:15:02 +01:00
|
|
|
var layoutSettings = jQuery.extend({
|
|
|
|
defaults: {
|
|
|
|
// TODO Reactivate once we have localized values
|
|
|
|
togglerTip_open: '',
|
|
|
|
togglerTip_closed: '',
|
|
|
|
resizerTip: '',
|
|
|
|
sliderTip: '',
|
|
|
|
onresize: function() {self._resizeChildren();},
|
|
|
|
onopen: function() {self._resizeChildren();}
|
|
|
|
},
|
|
|
|
north: {
|
|
|
|
slidable: false,
|
|
|
|
resizable: false,
|
2009-11-21 04:17:29 +01:00
|
|
|
size: this.find('.ui-layout-north').height(),
|
2009-11-21 04:15:02 +01:00
|
|
|
togglerLength_open: 0
|
|
|
|
},
|
|
|
|
south: {
|
|
|
|
slidable: false,
|
|
|
|
resizable: false,
|
2009-11-21 04:17:29 +01:00
|
|
|
size: this.find('.ui-layout-south').height(),
|
2009-11-21 04:15:02 +01:00
|
|
|
togglerLength_open: 0
|
|
|
|
},
|
|
|
|
west: {
|
2009-11-21 04:17:38 +01:00
|
|
|
size: (widthWest) ? widthWest : undefined,
|
2009-11-21 04:15:02 +01:00
|
|
|
fxName: "none"
|
|
|
|
},
|
|
|
|
east: {
|
|
|
|
initClosed: true,
|
|
|
|
// multiple panels which are triggered through tinymce buttons,
|
|
|
|
// so a user shouldn't be able to toggle this panel manually
|
|
|
|
initHidden: true,
|
|
|
|
spacing_closed: 0,
|
2009-11-21 04:17:38 +01:00
|
|
|
fxName: "none"
|
2009-11-21 04:15:02 +01:00
|
|
|
},
|
|
|
|
center: {}
|
|
|
|
}, savedLayoutSettings);
|
|
|
|
var layout = $('body').layout(layoutSettings);
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:15:02 +01:00
|
|
|
// Adjust tree accordion etc. in left panel to work correctly
|
|
|
|
// with jQuery.layout (see http://layout.jquery-dev.net/tips.html#Widget_Accordion)
|
|
|
|
this.find("#treepanes").accordion({
|
|
|
|
fillSpace: true,
|
|
|
|
animated: false
|
|
|
|
});
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:15:02 +01:00
|
|
|
return layout;
|
|
|
|
},
|
2009-11-21 03:38:22 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
/**
|
|
|
|
* This function is called by prototype when it receives notification that the user was logged out.
|
|
|
|
* It uses /Security/ping for this purpose, which should return '1' if a valid user session exists.
|
|
|
|
* It redirects back to the login form if the URL is either unreachable, or returns '0'.
|
|
|
|
*/
|
|
|
|
_setupPinging: function() {
|
2009-11-21 03:39:14 +01:00
|
|
|
var onSessionLost = function(xmlhttp, status) {
|
|
|
|
if(xmlhttp.status > 400 || xmlhttp.responseText == 0) {
|
2009-11-21 03:38:31 +01:00
|
|
|
// TODO will pile up additional alerts when left unattended
|
|
|
|
if(window.open('Security/login')) {
|
|
|
|
alert("Please log in and then try again");
|
|
|
|
} else {
|
|
|
|
alert("Please enable pop-ups for this site");
|
|
|
|
}
|
2009-11-21 03:38:22 +01:00
|
|
|
}
|
2009-11-21 03:38:31 +01:00
|
|
|
};
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
// setup pinging for login expiry
|
|
|
|
setInterval(function() {
|
|
|
|
jQuery.ajax({
|
|
|
|
url: "Security/ping",
|
|
|
|
global: false,
|
2009-11-21 03:39:14 +01:00
|
|
|
complete: onSessionLost
|
2009-11-21 03:38:31 +01:00
|
|
|
});
|
2009-11-21 04:19:59 +01:00
|
|
|
}, this.getPingIntervalSeconds() * 1000);
|
2009-11-21 03:38:31 +01:00
|
|
|
},
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
/**
|
|
|
|
* Resize elements in center panel
|
2009-11-21 04:19:59 +01:00
|
|
|
* to fit the boundary box provided by the layout manager.
|
|
|
|
* TODO Replace with automated less ugly parent/sibling traversal
|
2009-11-21 03:38:31 +01:00
|
|
|
*/
|
|
|
|
_resizeChildren: function() {
|
2009-11-21 04:15:02 +01:00
|
|
|
$("#treepanes", this).accordion("resize");
|
|
|
|
$('#sitetree_and_tools', this).fitHeightToParent();
|
|
|
|
$('#contentPanel form', this).fitHeightToParent();
|
|
|
|
$('#contentPanel form fieldset', this).fitHeightToParent();
|
|
|
|
$('#contentPanel form fieldset .content', this).fitHeightToParent();
|
2009-11-21 03:38:31 +01:00
|
|
|
$('#Form_EditForm').fitHeightToParent();
|
|
|
|
$('#Form_EditForm fieldset', this).fitHeightToParent();
|
|
|
|
// Order of resizing is important: Outer to inner
|
|
|
|
// TODO Only supports two levels of tabs at the moment
|
|
|
|
$('#Form_EditForm fieldset > .ss-tabset', this).fitHeightToParent();
|
|
|
|
$('#Form_EditForm fieldset > .ss-tabset > .tab', this).fitHeightToParent();
|
|
|
|
$('#Form_EditForm fieldset > .ss-tabset > .tab > .ss-tabset', this).fitHeightToParent();
|
|
|
|
$('#Form_EditForm fieldset > .ss-tabset > .tab > .ss-tabset > .tab', this).fitHeightToParent();
|
|
|
|
}
|
2009-11-21 04:19:59 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class Make all buttons "hoverable" with jQuery theming.
|
|
|
|
* Also sets the clicked button on a form submission, making it available through
|
|
|
|
* a new 'clickedButton' property on the form DOM element.
|
|
|
|
*
|
|
|
|
* @name ss.LeftAndMain.Buttons
|
|
|
|
*/
|
|
|
|
$('.LeftAndMain :submit, .LeftAndMain button, .LeftAndMain :reset').concrete(/** @lends ss.LeftAndMain.Buttons */{
|
2009-11-21 04:16:18 +01:00
|
|
|
onmatch: function() {
|
|
|
|
this.addClass(
|
|
|
|
'ui-state-default ' +
|
|
|
|
'ui-corner-all'
|
|
|
|
)
|
|
|
|
.hover(
|
|
|
|
function() {
|
|
|
|
$(this).addClass('ui-state-hover');
|
|
|
|
},
|
|
|
|
function() {
|
|
|
|
$(this).removeClass('ui-state-hover');
|
|
|
|
}
|
|
|
|
)
|
|
|
|
.focus(function() {
|
|
|
|
$(this).addClass('ui-state-focus');
|
|
|
|
})
|
|
|
|
.blur(function() {
|
|
|
|
$(this).removeClass('ui-state-focus');
|
2009-11-21 04:17:43 +01:00
|
|
|
})
|
|
|
|
.click(function() {
|
|
|
|
var form = this.form;
|
|
|
|
// forms don't natively store the button they've been triggered with
|
|
|
|
form.clickedButton = this;
|
|
|
|
// Reset the clicked button shortly after the onsubmit handlers
|
|
|
|
// have fired on the form
|
|
|
|
setTimeout(function() {form.clickedButton = null;}, 10);
|
2009-11-21 04:16:18 +01:00
|
|
|
});
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 04:16:18 +01:00
|
|
|
this._super();
|
|
|
|
}
|
2009-11-21 04:19:59 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class Container for tree actions like "create", "search", etc.
|
|
|
|
* @name ss.TreeActions
|
|
|
|
*/
|
|
|
|
$('#TreeActions').concrete(/** @lends ss.TreeActions */{
|
2009-11-21 03:38:31 +01:00
|
|
|
/**
|
|
|
|
* Setup "create", "search", "batch actions" layers above tree.
|
|
|
|
* All tab contents are closed by default.
|
|
|
|
*/
|
|
|
|
onmatch: function() {
|
|
|
|
this.tabs({
|
|
|
|
collapsible: true,
|
|
|
|
selected: parseInt(jQuery.cookie('ui-tabs-TreeActions'), 10) || null,
|
|
|
|
cookie: { expires: 30, path: '/', name: 'ui-tabs-TreeActions' }
|
|
|
|
});
|
|
|
|
}
|
2009-11-21 04:19:59 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class Link for editing the profile for a logged-in member
|
|
|
|
* through a modal dialog.
|
|
|
|
* @name ss.EditMemberProfile
|
|
|
|
*/
|
|
|
|
$('a#EditMemberProfile').concrete(/** @lends ss.EditMemberProfile */{
|
2009-11-21 03:38:31 +01:00
|
|
|
onmatch: function() {
|
|
|
|
var self = this;
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
this.bind('click', function(e) {return self._openPopup();});
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
$('body').append(
|
|
|
|
'<div id="ss-ui-dialog">'
|
|
|
|
+ '<iframe id="ss-ui-dialog-iframe" '
|
|
|
|
+ 'marginWidth="0" marginHeight="0" frameBorder="0" scrolling="auto">'
|
|
|
|
+ '</iframe>'
|
|
|
|
+ '</div>'
|
|
|
|
);
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
var cookieVal = (jQuery.cookie) ? JSON.parse(jQuery.cookie('ss-ui-dialog')) : false;
|
|
|
|
$("#ss-ui-dialog").dialog(jQuery.extend({
|
|
|
|
autoOpen: false,
|
|
|
|
bgiframe: true,
|
|
|
|
modal: true,
|
|
|
|
height: 300,
|
|
|
|
width: 500,
|
|
|
|
ghost: true,
|
|
|
|
resizeStop: function(e, ui) {
|
|
|
|
self._resize();
|
|
|
|
self._saveState();
|
|
|
|
},
|
|
|
|
dragStop: function(e, ui) {
|
|
|
|
self._saveState();
|
|
|
|
},
|
|
|
|
// TODO i18n
|
|
|
|
title: 'Edit Profile'
|
|
|
|
}, cookieVal)).css('overflow', 'hidden');
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
$('#ss-ui-dialog-iframe').bind('load', function(e) {self._resize();});
|
|
|
|
},
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
_openPopup: function(e) {
|
|
|
|
$('#ss-ui-dialog-iframe').attr('src', this.attr('href'));
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
$("#ss-ui-dialog").dialog('open');
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
return false;
|
|
|
|
},
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
_resize: function() {
|
|
|
|
var iframe = $('#ss-ui-dialog-iframe');
|
|
|
|
var container = $('#ss-ui-dialog');
|
2009-11-21 03:37:34 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
iframe.attr('width',
|
|
|
|
container.innerWidth()
|
|
|
|
- parseFloat(container.css('paddingLeft'))
|
|
|
|
- parseFloat(container.css('paddingRight'))
|
|
|
|
);
|
|
|
|
iframe.attr('height',
|
|
|
|
container.innerHeight()
|
|
|
|
- parseFloat(container.css('paddingTop'))
|
|
|
|
- parseFloat(container.css('paddingBottom'))
|
|
|
|
);
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
this._saveState();
|
|
|
|
},
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
_saveState: function() {
|
|
|
|
var container = $('#ss-ui-dialog');
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:31 +01:00
|
|
|
// save size in cookie (optional)
|
|
|
|
if(jQuery.cookie && container.width() && container.height()) {
|
|
|
|
jQuery.cookie(
|
|
|
|
'ss-ui-dialog',
|
|
|
|
JSON.stringify({
|
|
|
|
width: parseInt(container.width(), 10),
|
|
|
|
height: parseInt(container.height(), 10),
|
|
|
|
position: [
|
|
|
|
parseInt(container.offset().top, 10),
|
|
|
|
parseInt(container.offset().left, 10)
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
{ expires: 30, path: '/'}
|
|
|
|
);
|
|
|
|
}
|
2009-11-21 03:37:34 +01:00
|
|
|
}
|
2009-11-21 04:19:59 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @class Links for viewing the currently loaded page
|
|
|
|
* in different modes: 'live', 'stage' or 'archived'.
|
|
|
|
* Automatically updates on loading a new page.
|
|
|
|
* @name ss.switchViewLinks
|
|
|
|
* @requires jquery.metadata
|
|
|
|
*/
|
|
|
|
$('#switchView a').concrete(/** @lends ss.switchViewLinks */{
|
2009-11-21 03:38:17 +01:00
|
|
|
/**
|
|
|
|
* @type DOMElement
|
|
|
|
*/
|
|
|
|
Form: null,
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:17 +01:00
|
|
|
onmatch: function() {
|
|
|
|
var self = this;
|
|
|
|
this.setForm($('#Form_EditForm'));
|
2009-11-21 04:20:14 +01:00
|
|
|
|
2009-11-21 03:38:17 +01:00
|
|
|
jQuery('#Form_EditForm').bind('loadnewpage delete', function(e) {self.refresh();});
|
|
|
|
self.refresh();
|
2009-11-21 04:20:07 +01:00
|
|
|
|
|
|
|
this._super();
|
2009-11-21 03:38:17 +01:00
|
|
|
},
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:17 +01:00
|
|
|
/**
|
|
|
|
* Parse new links based on the underlying form URLSegment,
|
|
|
|
* preserving the ?stage URL parameters if necessary.
|
|
|
|
*/
|
|
|
|
refresh: function() {
|
|
|
|
// TODO Compatible with nested urls?
|
2010-04-12 11:41:45 +02:00
|
|
|
var urlSegment = this.getForm().find(':input[name=AbsoluteLink]').val();
|
|
|
|
if(!urlSegment) urlSegment = this.getForm().find(':input[name=URLSegment]').val();
|
|
|
|
|
2009-11-21 03:38:17 +01:00
|
|
|
if(urlSegment) {
|
2009-11-21 04:19:59 +01:00
|
|
|
var locale = this.getForm().find(':input[name=Locale]').val();
|
2009-11-21 03:38:17 +01:00
|
|
|
var url = urlSegment;
|
|
|
|
if(this.metadata().params) url += '?' + this.metadata().params;
|
|
|
|
if(locale) url += ((url.indexOf('?') > 0) ? '&' : '?') + "locale=" + locale;
|
|
|
|
this.attr('href', url);
|
|
|
|
}
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:17 +01:00
|
|
|
// hide fields if no URLSegment is present
|
|
|
|
this.toggle((urlSegment));
|
|
|
|
},
|
2009-11-21 04:19:59 +01:00
|
|
|
|
2009-11-21 03:38:17 +01:00
|
|
|
onclick: function(e) {
|
|
|
|
// Open in popup
|
|
|
|
window.open($(e.target).attr('href'));
|
|
|
|
return false;
|
|
|
|
}
|
2009-11-21 04:19:59 +01:00
|
|
|
});
|
2009-11-21 03:38:17 +01:00
|
|
|
});
|
2009-11-21 04:18:22 +01:00
|
|
|
}(jQuery));
|
2009-11-21 03:36:00 +01:00
|
|
|
|
2009-11-21 04:14:36 +01:00
|
|
|
// Backwards compatibility
|
|
|
|
var statusMessage = function(text, type) {
|
|
|
|
jQuery.noticeAdd({text: text, type: type});
|
2009-11-21 04:16:21 +01:00
|
|
|
};
|
|
|
|
|
2009-11-21 04:14:36 +01:00
|
|
|
var errorMessage = function(text) {
|
|
|
|
jQuery.noticeAdd({text: text, type: 'error'});
|
2009-11-21 04:16:21 +01:00
|
|
|
};
|
2007-07-19 12:40:05 +02:00
|
|
|
|
2007-09-15 03:25:07 +02:00
|
|
|
returnFalse = function() {
|
2007-07-19 12:40:05 +02:00
|
|
|
return false;
|
2009-11-21 04:16:21 +01:00
|
|
|
};
|
2007-07-19 12:40:05 +02:00
|
|
|
|
2009-05-14 08:11:18 +02:00
|
|
|
/**
|
|
|
|
* Find and enable TinyMCE on all htmleditor fields
|
|
|
|
* Pulled in from old tinymce.template.js
|
|
|
|
*/
|
|
|
|
|
|
|
|
function nullConverter(url) {
|
|
|
|
return url;
|
2009-11-21 04:16:21 +01:00
|
|
|
};
|