Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amaury Van Espen
costum
Commits
7ba39591
Commit
7ba39591
authored
Mar 11, 2020
by
Raph El
Browse files
hotfix raffinerie
parent
54745541
Changes
3
Hide whitespace changes
Inline
Side-by-side
assets/js/laRaffinerie3/pageProfil.js
0 → 100644
View file @
7ba39591
// pageProfil.views.newspaper = function(){
// mylog.log("costum pageProfil.views.newspaper");
// //coInterface.scrollTo("#profil_imgPreview");
// setTimeout(function(){ //attend que le scroll retourn en haut (coInterface.scrollTo)
// ajaxPost('#journal', baseUrl+"/news/co/index/type/"+typeItem+"/id/"+contextData.id,
// {nbCol:1},
// function(){},"html");
// }, 700);
// };
pageProfil
.
views
.
directory
=
function
(
callBack
){
mylog
.
log
(
"
pageProfil.views.directory
"
);
var
dataIcon
=
(
!
notEmpty
(
pageProfil
.
params
.
dir
))
?
"
users
"
:
$
(
"
.smma[data-type-dir=
"
+
pageProfil
.
params
.
dir
+
"
]
"
).
data
(
"
icon
"
);
pageProfil
.
params
.
dir
=
(
!
notEmpty
(
pageProfil
.
params
.
dir
))
?
links
.
connectType
[
contextData
.
type
]
:
pageProfil
.
params
.
dir
;
var
sub
=
(
!
notEmpty
(
pageProfil
.
params
.
sub
))
?
""
:
"
/sub/
"
+
pageProfil
.
params
.
sub
;
var
sort
=
(
(
pageProfil
.
params
.
dir
==
"
events
"
)
?
"
/sort/1
"
:
""
);
getAjax
(
''
,
baseUrl
+
'
/
'
+
moduleId
+
'
/element/getdatadetail/type/
'
+
contextData
.
type
+
'
/id/
'
+
contextData
.
id
+
'
/dataName/
'
+
pageProfil
.
params
.
dir
+
sub
+
sort
+
'
?tpl=json
'
,
function
(
data
){
var
type
=
(
$
.
inArray
(
pageProfil
.
params
.
dir
,
[
"
poi
"
,
"
ressources
"
,
"
vote
"
,
"
actions
"
,
"
discuss
"
])
>=
0
)
?
pageProfil
.
params
.
dir
:
null
;
mylog
.
log
(
"
pageProfil.views.directory canEdit
"
,
canEdit
);
if
(
typeof
canEdit
!=
"
undefined
"
&&
canEdit
)
canEdit
=
pageProfil
.
params
.
dir
;
mylog
.
log
(
"
pageProfil.views.directory edit
"
,
canEdit
);
displayInTheContainer
(
data
,
pageProfil
.
params
.
dir
,
dataIcon
,
type
,
canEdit
);
if
(
typeof
mapCO
!=
"
undefined
"
){
mapCO
.
clearMap
();
mapCO
.
addElts
(
data
);
mapCO
.
map
.
invalidateSize
();
}
coInterface
.
bindButtonOpenForm
();
if
(
typeof
callBack
!=
"
undefined
"
&&
callBack
!=
null
)
callBack
();
}
,
"
html
"
);
}
pageProfil
.
initCallB
=
function
(){
mylog
.
log
(
"
pageProfil.initCallB Raffinerie
"
);
if
(
typeof
pageProfil
.
params
.
view
!=
"
undefined
"
&&
pageProfil
.
params
.
view
!=
null
&&
pageProfil
.
params
.
view
==
"
directory
"
&&
typeof
pageProfil
.
params
.
dir
!=
"
undefined
"
&&
pageProfil
.
params
.
dir
!=
null
&&
pageProfil
.
params
.
dir
==
"
events
"
){
$
(
"
#showHideCalendar
"
).
trigger
(
"
click
"
);
}
}
\ No newline at end of file
assets/js/laRaffinerie3/profilSocial.js
deleted
100644 → 0
View file @
54745541
// pageProfil.views.newspaper = function(){
// mylog.log("costum pageProfil.views.newspaper");
// //coInterface.scrollTo("#profil_imgPreview");
// setTimeout(function(){ //attend que le scroll retourn en haut (coInterface.scrollTo)
// ajaxPost('#journal', baseUrl+"/news/co/index/type/"+typeItem+"/id/"+contextData.id,
// {nbCol:1},
// function(){},"html");
// }, 700);
// };
\ No newline at end of file
views/custom/laRaffinerie3/projects.php
View file @
7ba39591
...
...
@@ -33,7 +33,9 @@ $cssAndScriptFilesModule = array(
);
HtmlHelper
::
registerCssAndScriptsFiles
(
$cssAndScriptFilesModule
,
Yii
::
app
()
->
getModule
(
"co2"
)
->
getAssetsUrl
());
$cssJsCostum
=
array
();
array_push
(
$cssJsCostum
,
'/js/'
.
Yii
::
app
()
->
session
[
"costum"
][
"slug"
]
.
'/pageProfil.js'
);
HtmlHelper
::
registerCssAndScriptsFiles
(
$cssJsCostum
,
Yii
::
app
()
->
getModule
(
"costum"
)
->
getAssetsUrl
());
$canEdit
=
false
;
$openEdition
=
false
;
if
(
Authorisation
::
isElementAdmin
(
$id
,
$type
,
@
Yii
::
app
()
->
session
[
"userId"
]))
{
...
...
@@ -506,16 +508,7 @@ if (Authorisation::isElementAdmin($id, $type, @Yii::app()->session["userId"])) {
},
null
,
filterAddType
);
pageProfil
.
initCallB
=
function
(){
if
(
typeof
pageProfil
.
params
.
view
!=
"
undefined
"
&&
pageProfil
.
params
.
view
!=
null
&&
pageProfil
.
params
.
view
==
"
directory
"
&&
typeof
pageProfil
.
params
.
dir
!=
"
undefined
"
&&
pageProfil
.
params
.
dir
!=
null
&&
pageProfil
.
params
.
dir
==
"
events
"
){
$
(
"
#showHideCalendar
"
).
trigger
(
"
click
"
);
}
}
if
(
typeof
userId
!=
"
undefined
"
&&
userId
!=
null
&&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment