Migrating to jQuery the feed feature.
parent
183deccc15
commit
27ef090425
|
|
@ -51,6 +51,7 @@ if ($user->isAdmin()) {
|
||||||
$("#divMessages").fadeOut(5000,function(){
|
$("#divMessages").fadeOut(5000,function(){
|
||||||
$("#divMessages").css({display:"none"});
|
$("#divMessages").css({display:"none"});
|
||||||
});
|
});
|
||||||
|
$("#source").change(function (){selectFeedType('<?php echo __("Feed Url:")?>','<?php echo __(" username:")?>')})
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
|
|
@ -84,7 +85,7 @@ if ($user->isAdmin()) {
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label for="source"><?php echo __("Import data from:")?></label>
|
<label for="source"><?php echo __("Import data from:")?></label>
|
||||||
<select name="source" id="source" onchange="selectFeedType('<?php echo __("Feed Url:")?>','<?php echo __(" username:")?>' )">
|
<select name="source" id="source">
|
||||||
<option value="Rss" selected="selected">Rss/atom Feed</option>
|
<option value="Rss" selected="selected">Rss/atom Feed</option>
|
||||||
<option value="Twitter">Twitter</option>
|
<option value="Twitter">Twitter</option>
|
||||||
<option value="Youtube">Youtube</option>
|
<option value="Youtube">Youtube</option>
|
||||||
|
|
|
||||||
|
|
@ -48,13 +48,11 @@ function exit(el, path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectFeedType(feed_url,username){
|
function selectFeedType(feed_url,username){
|
||||||
var source = $('source');
|
if( $('#source').val() != 'Rss'){
|
||||||
if(source.selectedIndex != 0){
|
$('#import_as').hide();
|
||||||
$('import_as').style.display="none";
|
$('#url_label').text($('#source').val() + username) ;
|
||||||
$('url_label').firstChild.nodeValue = source[source.selectedIndex].firstChild.nodeValue + username;
|
|
||||||
}else{
|
}else{
|
||||||
$('import_as').style.display="block";
|
$('#import_as').show();
|
||||||
$('url_label').firstChild.nodeValue = feed_url;
|
$('#url_label').text(feed_url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue