Merge pull request #78 from git-marijus/master
some more spin.js porting
This commit is contained in:
commit
1ace84a564
@ -1227,15 +1227,16 @@ footer {
|
|||||||
}
|
}
|
||||||
#profile-upload-wrapper {
|
#profile-upload-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 30px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-attach-wrapper {
|
#profile-attach-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 30px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
#profile-rotator {
|
#profile-rotator {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 30px;
|
margin: 8px 0px 0px 20px;
|
||||||
|
color: #777;
|
||||||
}
|
}
|
||||||
#profile-link-wrapper {
|
#profile-link-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
@ -1263,7 +1264,6 @@ footer {
|
|||||||
margin-top: 0px !important;
|
margin-top: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#profile-nolocation-wrapper {
|
#profile-nolocation-wrapper {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
|
@ -123,10 +123,10 @@ function enableOnUser(){
|
|||||||
'wall-image-upload',
|
'wall-image-upload',
|
||||||
{ action: '{{$baseurl}}/wall_upload/{{$nickname}}',
|
{ action: '{{$baseurl}}/wall_upload/{{$nickname}}',
|
||||||
name: 'userfile',
|
name: 'userfile',
|
||||||
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
onSubmit: function(file,ext) { $('#profile-rotator').spin('tiny'); },
|
||||||
onComplete: function(file,response) {
|
onComplete: function(file,response) {
|
||||||
addeditortext(response);
|
addeditortext(response);
|
||||||
$('#profile-rotator').hide();
|
$('#profile-rotator').spin(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -134,10 +134,10 @@ function enableOnUser(){
|
|||||||
'wall-file-upload',
|
'wall-file-upload',
|
||||||
{ action: '{{$baseurl}}/wall_attach/{{$nickname}}',
|
{ action: '{{$baseurl}}/wall_attach/{{$nickname}}',
|
||||||
name: 'userfile',
|
name: 'userfile',
|
||||||
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
onSubmit: function(file,ext) { $('#profile-rotator').spin('tiny'); },
|
||||||
onComplete: function(file,response) {
|
onComplete: function(file,response) {
|
||||||
addeditortext(response);
|
addeditortext(response);
|
||||||
$('#profile-rotator').hide();
|
$('#profile-rotator').spin(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -167,10 +167,10 @@ function enableOnUser(){
|
|||||||
reply = prompt("{{$linkurl}}");
|
reply = prompt("{{$linkurl}}");
|
||||||
if(reply && reply.length) {
|
if(reply && reply.length) {
|
||||||
reply = bin2hex(reply);
|
reply = bin2hex(reply);
|
||||||
$('#profile-rotator').show();
|
$('#profile-rotator').spin('tiny');
|
||||||
$.get('{{$baseurl}}/parse_url?binurl=' + reply, function(data) {
|
$.get('{{$baseurl}}/parse_url?binurl=' + reply, function(data) {
|
||||||
addeditortext(data);
|
addeditortext(data);
|
||||||
$('#profile-rotator').hide();
|
$('#profile-rotator').spin(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -224,12 +224,12 @@ function enableOnUser(){
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if(reply && reply.length) {
|
if(reply && reply.length) {
|
||||||
reply = bin2hex(reply);
|
reply = bin2hex(reply);
|
||||||
$('#profile-rotator').show();
|
$('#profile-rotator').spin('tiny');
|
||||||
$.get('{{$baseurl}}/parse_url?binurl=' + reply, function(data) {
|
$.get('{{$baseurl}}/parse_url?binurl=' + reply, function(data) {
|
||||||
if (!editor) $("#profile-jot-text").val("");
|
if (!editor) $("#profile-jot-text").val("");
|
||||||
initEditor(function(){
|
initEditor(function(){
|
||||||
addeditortext(data);
|
addeditortext(data);
|
||||||
$('#profile-rotator').hide();
|
$('#profile-rotator').spin(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
<div id="profile-nolocation-wrapper" style="display: none;" >
|
<div id="profile-nolocation-wrapper" style="display: none;" >
|
||||||
<a id="profile-nolocation" class="icon noglobe" title="{{$noloc}}" onclick="jotClearLocation();return false;"></a>
|
<a id="profile-nolocation" class="icon noglobe" title="{{$noloc}}" onclick="jotClearLocation();return false;"></a>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="profile-rotator-wrapper" style="display: {{$visitor}};" >
|
||||||
|
<div id="profile-rotator"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{if $showacl}}
|
{{if $showacl}}
|
||||||
<div id="profile-jot-perms" class="profile-jot-perms" style="display: {{$pvisit}};" >
|
<div id="profile-jot-perms" class="profile-jot-perms" style="display: {{$pvisit}};" >
|
||||||
@ -69,10 +72,6 @@
|
|||||||
{{$jotplugins}}
|
{{$jotplugins}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="profile-rotator-wrapper" style="display: {{$visitor}};" >
|
|
||||||
<img id="profile-rotator" src="images/rotator.gif" alt="{{$wait}}" title="{{$wait}}" style="display: none;" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="jot-preview-content" style="display:none;"></div>
|
<div id="jot-preview-content" style="display:none;"></div>
|
||||||
|
|
||||||
<div style="display: none;">
|
<div style="display: none;">
|
||||||
|
@ -58,10 +58,10 @@ else
|
|||||||
'prvmail-upload',
|
'prvmail-upload',
|
||||||
{ action: 'wall_upload/{{$nickname}}',
|
{ action: 'wall_upload/{{$nickname}}',
|
||||||
name: 'userfile',
|
name: 'userfile',
|
||||||
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
|
onSubmit: function(file,ext) { $('#profile-rotator').spin('tiny'); },
|
||||||
onComplete: function(file,response) {
|
onComplete: function(file,response) {
|
||||||
tinyMCE.execCommand('mceInsertRawHTML',false,response);
|
tinyMCE.execCommand('mceInsertRawHTML',false,response);
|
||||||
$('#profile-rotator').hide();
|
$('#profile-rotator').spin(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -71,10 +71,10 @@ else
|
|||||||
function jotGetLink() {
|
function jotGetLink() {
|
||||||
reply = prompt("{{$linkurl}}");
|
reply = prompt("{{$linkurl}}");
|
||||||
if(reply && reply.length) {
|
if(reply && reply.length) {
|
||||||
$('#profile-rotator').show();
|
$('#profile-rotator').spin('tiny');
|
||||||
$.get('parse_url?url=' + reply, function(data) {
|
$.get('parse_url?url=' + reply, function(data) {
|
||||||
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
||||||
$('#profile-rotator').hide();
|
$('#profile-rotator').spin(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -90,10 +90,10 @@ else
|
|||||||
event.target.textContent = reply;
|
event.target.textContent = reply;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if(reply && reply.length) {
|
if(reply && reply.length) {
|
||||||
$('#profile-rotator').show();
|
$('#profile-rotator').spin('tiny');
|
||||||
$.get('parse_url?url=' + reply, function(data) {
|
$.get('parse_url?url=' + reply, function(data) {
|
||||||
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
tinyMCE.execCommand('mceInsertRawHTML',false,data);
|
||||||
$('#profile-rotator').hide();
|
$('#profile-rotator').spin(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user