Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
optimizely
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
optimizely
Commits
988e7aea
Commit
988e7aea
authored
11 years ago
by
Darren Douglas Lee
Browse files
Options
Downloads
Patches
Plain Diff
Changed jQuery call to use .text() rather than .attr(innerHTML...
parent
e841fece
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/optimizely-admin.js
+9
-9
9 additions, 9 deletions
js/optimizely-admin.js
with
9 additions
and
9 deletions
js/optimizely-admin.js
+
9
−
9
View file @
988e7aea
...
...
@@ -38,14 +38,14 @@
// Toggle enable / disabled class
if
(
$
(
target_this
).
attr
(
'
checked
'
))
{
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
td
'
).
addClass
(
'
enabled
'
).
removeClass
(
'
disabled
'
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
attr
(
"
innerHTML
"
,
"
Project enabled successfully.
"
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
attr
(
"
innerHTML
"
,
""
).
css
(
'
display
'
,
''
)
});
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
text
(
"
Project enabled successfully.
"
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
text
(
''
).
css
(
'
display
'
,
''
)
});
}
else
{
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
td
'
).
addClass
(
'
disabled
'
).
removeClass
(
'
enabled
'
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
attr
(
"
innerHTML
"
,
"
Project disabled successfully.
"
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
attr
(
"
innerHTML
"
,
""
).
css
(
'
display
'
,
''
);
});
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
text
(
''
).
css
(
'
display
'
,
''
);
});
}
}
...
...
@@ -59,8 +59,8 @@
}
// Display status message
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
attr
(
"
innerHTML
"
,
"
Project was not enabled due to path setting resulting in a duplicate path.
"
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
attr
(
"
innerHTML
"
,
""
).
css
(
'
display
'
,
''
);
});
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
text
(
'
Project was not enabled due to path setting resulting in a duplicate path.
'
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
text
(
''
).
css
(
'
display
'
,
''
);
});
}
},
...
...
@@ -69,8 +69,8 @@
$
(
document
).
ready
(
function
(
data
)
{
var
target_this
=
'
#project-enable-
'
+
data
.
oid
;
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
attr
(
"
innerHTML
"
,
"
Loading....
"
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
attr
(
"
innerHTML
"
,
""
).
css
(
'
display
'
,
''
);
});
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
text
(
'
Loading....
'
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
text
(
''
).
css
(
'
display
'
,
''
);
});
});
...
...
@@ -80,8 +80,8 @@
$
(
document
).
ready
(
function
()
{
var
target_this
=
'
#project-enable-
'
+
data
.
oid
;
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
attr
(
"
innerHTML
"
,
"
ERROR OCCURRED!
"
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
attr
(
"
innerHTML
"
,
""
).
css
(
'
display
'
,
''
);
});
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
text
(
'
ERROR OCCURRED!
'
);
$
(
target_this
).
parents
(
'
tr
'
).
find
(
'
div.status-
'
+
data
.
oid
).
fadeOut
(
6000
,
function
()
{
$
(
this
).
text
(
''
).
css
(
'
display
'
,
''
);
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment