The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
ActionStart =
function
()
// Sitefinity LoadMethodName
{
var
urlParams = {};
(
function
() {
var
match,
pl = /\+/g,
// Regex for replacing addition symbol with a space
search = /([^&=]+)=?([^&]*)/g,
decode =
function
(s) {
return
decodeURIComponent(s.replace(pl,
" "
)); },
query = window.location.search.substring(1);
while
(match = search.exec(query))
urlParams[decode(match[1])] = decode(match[2]);
})();
if
(urlParams[
"provider"
]) {
if
(urlParams[
"provider"
] ==
'newsProvider2'
) {
$(
'.sfFormIn'
).each(
function
() {
//debugger;
if
(($.trim($(
this
).find(
'h2 a'
).text()) ==
'CustomFieldsSection'
) || ($.trim($(
this
).find(
'h2 a'
).text()) ==
'More options (URL, Comments)'
)) {
// debugger;
$(
this
).parent().hide();
}
})
}
}
};
if
(urlParams[
"provider"
]) {
if
(urlParams[
"provider"
] ==
'newsProvider2'
) {
$(
'.sfFormIn'
).each(
function
() {
if
(($.trim($(
this
).find(
'h2 a'
).text()) ==
'CustomFieldsSection'
) || ($.trim($(
this
).find(
'h2 a'
).text()) ==
'More options (URL, Comments)'
)) {
// debugger;
$(
this
).parent().hide();
}
Stanislav Velikov is a Tech Support Engineer at Telerik. He joined the Sitefinity Support team in April 2011.
Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.
Learn MoreSubscribe to get all the news, info and tutorials you need to build better business apps and sites