mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
show a small preview of the paste content
This commit is contained in:
parent
b28a6de63f
commit
e86cc62b2b
@ -512,6 +512,12 @@ class Main extends CI_Controller
|
|||||||
if ($check)
|
if ($check)
|
||||||
{
|
{
|
||||||
$data = $this->pastes->getPaste(3);
|
$data = $this->pastes->getPaste(3);
|
||||||
|
|
||||||
|
if (isset($_GET['preview']))
|
||||||
|
{
|
||||||
|
$this->load->helper('text');
|
||||||
|
$data['raw'] = character_limiter($data['raw'], 500);
|
||||||
|
}
|
||||||
$this->load->view('view/raw', $data);
|
$this->load->view('view/raw', $data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
7
htdocs/themes/default/css/jquery-ui.min.css
vendored
Normal file
7
htdocs/themes/default/css/jquery-ui.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -50,6 +50,18 @@ ST.spamadmin = function() {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).tooltip({
|
||||||
|
items: "td.first a",
|
||||||
|
content: function(done) {
|
||||||
|
var pid = $(this).attr('href').split('view/')[1];
|
||||||
|
$.get(base_url + 'view/raw/' + pid + '?preview', function(data) {
|
||||||
|
done(data);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
show: false,
|
||||||
|
hide: false
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// needed by .selectable
|
// needed by .selectable
|
||||||
|
@ -28,6 +28,7 @@ $this->carabiner->config(array(
|
|||||||
|
|
||||||
// CSS
|
// CSS
|
||||||
$this->carabiner->css('reset.css');
|
$this->carabiner->css('reset.css');
|
||||||
|
$this->carabiner->css('jquery-ui.min.css');
|
||||||
$this->carabiner->css('fonts.css');
|
$this->carabiner->css('fonts.css');
|
||||||
$this->carabiner->css('main.css');
|
$this->carabiner->css('main.css');
|
||||||
$this->carabiner->css('print.css', 'print');
|
$this->carabiner->css('print.css', 'print');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user