Skip to content

Commit

Permalink
dev: Fixed errors on editing labelsets
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Jul 2, 2013
1 parent e14b3b9 commit 84e8e19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/labels.php
Expand Up @@ -167,7 +167,7 @@ public function index($sa, $lid=0)
$lid = sanitize_int($lid);
$aViewUrls = array();

if (hasGlobalPermission('labelsets','read'))
if (Permission::model()->hasGlobalPermission('labelsets','read'))
{
if ($sa == "editlabelset" && Permission::model()->hasGlobalPermission('labelsets','update'))
{
Expand Down
6 changes: 3 additions & 3 deletions scripts/admin/labels.js
Expand Up @@ -28,8 +28,8 @@ $(document).ready(function(){
add_label(undefined);


$(".btnaddanswer").live('click',add_label);
$(".btndelanswer").live('click',del_label);
$(".btnaddanswer").click(add_label);
$(".btndelanswer").click(del_label);

$('#neweditlblset0 .answertable tbody').sortable({
update:sort_complete,
Expand All @@ -41,7 +41,7 @@ $(document).ready(function(){
width:600,
title: $("#quickadd").attr('name')});

$('.btnquickadd').live('click',function(){
$('.btnquickadd').click(function(){
$('#quickadd').dialog('open');
});

Expand Down

0 comments on commit 84e8e19

Please sign in to comment.