Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
a867b36e
Commit
a867b36e
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
js optimisations and style fixes
parent
6806484c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/js/js.js
+16
-15
16 additions, 15 deletions
core/js/js.js
with
16 additions
and
15 deletions
core/js/js.js
+
16
−
15
View file @
a867b36e
...
...
@@ -37,14 +37,14 @@ function t(app,text, vars){
t
.
cache
[
app
]
=
[];
}
}
var
_build
=
function
(
text
,
vars
)
{
return
text
.
replace
(
/{
([^
{}
]
*
)
}/g
,
function
(
a
,
b
)
{
var
r
=
vars
[
b
];
return
typeof
r
===
'
string
'
||
typeof
r
===
'
number
'
?
r
:
a
;
}
);
}
var
_build
=
function
(
text
,
vars
)
{
return
text
.
replace
(
/{
([^
{}
]
*
)
}/g
,
function
(
a
,
b
)
{
var
r
=
vars
[
b
];
return
typeof
r
===
'
string
'
||
typeof
r
===
'
number
'
?
r
:
a
;
}
);
};
if
(
typeof
(
t
.
cache
[
app
][
text
]
)
!==
'
undefined
'
){
if
(
typeof
vars
===
'
object
'
)
{
return
_build
(
t
.
cache
[
app
][
text
],
vars
);
...
...
@@ -247,7 +247,6 @@ var OC={
var
popup
=
$
(
'
#appsettings_popup
'
);
if
(
popup
.
length
==
0
)
{
$
(
'
body
'
).
prepend
(
'
<div class="popup hidden" id="appsettings_popup"></div>
'
);
popup
=
$
(
'
#appsettings_popup
'
);
popup
.
addClass
(
settings
.
hasClass
(
'
topright
'
)
?
'
topright
'
:
'
bottomleft
'
);
}
if
(
popup
.
is
(
'
:visible
'
))
{
...
...
@@ -308,14 +307,16 @@ OC.Notification={
});
},
showHtml
:
function
(
html
)
{
$
(
'
#notification
'
).
hide
();
$
(
'
#notification
'
).
html
(
html
);
$
(
'
#notification
'
).
fadeIn
();
var
notification
=
$
(
'
#notification
'
);
notification
.
hide
();
notification
.
html
(
html
);
notification
.
fadeIn
();
},
show
:
function
(
text
)
{
$
(
'
#notification
'
).
hide
();
$
(
'
#notification
'
).
text
(
text
);
$
(
'
#notification
'
).
fadeIn
();
var
notification
=
$
(
'
#notification
'
);
notification
.
hide
();
notification
.
text
(
text
);
notification
.
fadeIn
();
}
};
...
...
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